Stub out the reflection module
This commit is contained in:
@@ -86,6 +86,9 @@ target_link_libraries(chai ${DYNAMIC_LOADER} ${Boost_LIBRARIES} ${READLINE_LIB})
|
|||||||
add_library(stl_extra MODULE src/stl_extra.cpp)
|
add_library(stl_extra MODULE src/stl_extra.cpp)
|
||||||
target_link_libraries(stl_extra ${Boost_LIBRARIES})
|
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)
|
file(GLOB UNIT_TESTS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/unittests/ ${CMAKE_CURRENT_SOURCE_DIR}/unittests/*.chai)
|
||||||
|
|
||||||
IF(BUILD_TESTING)
|
IF(BUILD_TESTING)
|
||||||
|
|||||||
24
src/reflection.cpp
Normal file
24
src/reflection.cpp
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
|
||||||
|
#include <chaiscript/chaiscript.hpp>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user