diff --git a/CMakeLists.txt b/CMakeLists.txt index 61ca25f..122ad9d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,6 +86,9 @@ target_link_libraries(chai ${DYNAMIC_LOADER} ${Boost_LIBRARIES} ${READLINE_LIB}) add_library(stl_extra MODULE src/stl_extra.cpp) target_link_libraries(stl_extra ${Boost_LIBRARIES}) +add_library(reflection MODULE src/reflection.cpp) +target_link_libraries(reflection ${Boost_LIBRARIES}) + file(GLOB UNIT_TESTS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/unittests/ ${CMAKE_CURRENT_SOURCE_DIR}/unittests/*.chai) IF(BUILD_TESTING) diff --git a/src/reflection.cpp b/src/reflection.cpp new file mode 100644 index 0000000..b062e11 --- /dev/null +++ b/src/reflection.cpp @@ -0,0 +1,24 @@ + +#include +#include + +CHAISCRIPT_MODULE_EXPORT chaiscript::ModulePtr create_chaiscript_module_reflection() +{ + chaiscript::ModulePtr m(new chaiscript::Module()); + + /* + CHAISCRIPT_CLASS( m, + , + (Test ()) + (Test (const Test &)), + ((function)) + ((function2)) + ((function3)) + ((functionOverload)(std::string (Test::*)(double))) + ((functionOverload)(std::string (Test::*)(int))) + ); +*/ + + + return m; +}