Changeset 213 for trunk/tests
- Timestamp:
- 09/09/13 20:04:42 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/lualib_test/lualib_test.cc
r99 r213 1 1 #include <nv/lib/lua.hh> 2 2 #include <nv/lua/lua_state.hh> 3 #include <nv/lua/lua_dispatch.hh> 3 4 #include <nv/lua/lua_raw.hh> 4 5 #include <nv/lua/lua_glm.hh> … … 10 11 #include <functional> 11 12 #include <nv/gui/gui_element.hh> 13 14 void hello( const std::string& h ) 15 { 16 std::cout << h << " world from C++!" << std::endl; 17 } 18 12 19 13 20 int main(int, char* []) … … 22 29 { 23 30 nv::lua::state state( true ); 24 n lua_register_glm( state );31 nv::lua::register_glm( state ); 25 32 // run the Lua script 33 state.register_function<decltype(hello),&hello>( "hello" ); 26 34 state.do_file( "init.lua" ); 35 //std::cout << nv::function_traits<decltype(hello)>::arg_count << std::endl; 27 36 28 37 log.set_level( nv::LOG_INFO );
Note: See TracChangeset
for help on using the changeset viewer.