CPP-TOOLBOX
Loading...
Searching...
No Matches
meta_utils Directory Reference

Files

 meta_utils.cpp
 
 meta_utils.hpp
 

Detailed Description

This is a system which creates a "meta program", a meta program is a reflection system, it allows you to ask questions and do stuff with your existing code. Here are some things it currently does:

TODO

Gotchas

Put this in your cmakelists if you need conditional logic on if the meta program has been generated or not

set(GENERATED_META_PROGRAM_HEADER "${CMAKE_SOURCE_DIR}/src/meta_program/meta_program.hpp")
if(EXISTS "${GENERATED_META_PROGRAM_HEADER}" AND NOT IS_DIRECTORY "${GENERATED_META_PROGRAM_HEADER}")
message(STATUS "Found generated meta_program.hpp, enabling GENERATED_META_PROGRAM")
target_compile_definitions(${PROJECT_NAME} PRIVATE GENERATED_META_PROGRAM)
endif()