Changeset 321 for trunk/tests/lualib_test
- Timestamp:
- 08/25/14 02:43:30 (11 years ago)
- Location:
- trunk/tests/lualib_test
- Files:
-
- 1 added
- 1 deleted
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/lualib_test/nv_lualib_test.cc
r214 r321 4 4 #include <nv/lua/lua_raw.hh> 5 5 #include <nv/lua/lua_glm.hh> 6 #include <nv/logger.hh> 7 #include <nv/math.hh> 8 #include <nv/object.hh> 9 #include <string> 6 #include <nv/core/logger.hh> 7 #include <nv/core/math.hh> 8 #include <nv/core/string.hh> 10 9 #include <iostream> 11 10 #include <functional> 12 #include <nv/gui/gui_element.hh>13 11 14 12 void hello( const std::string& h ) … … 31 29 nv::lua::register_glm( state ); 32 30 // run the Lua script 33 state.register_function<decltype( hello),&hello>( "hello" );31 state.register_function<decltype(&hello),&hello>( "hello" ); 34 32 state.do_file( "init.lua" ); 35 33 //std::cout << nv::function_traits<decltype(hello)>::arg_count << std::endl; -
trunk/tests/lualib_test/premake4.lua
r52 r321 8 8 defines { "DEBUG" } 9 9 flags { "Symbols", "StaticRuntime" } 10 objdir ( _ACTION.."/debug")10 objdir ("../../".._ACTION.."/debug") 11 11 12 12 configuration "release" 13 13 defines { "NDEBUG" } 14 14 flags { "Optimize", "StaticRuntime" } 15 objdir ( _ACTION.."/release")15 objdir ("../../".._ACTION.."/release") 16 16 17 17 dofile("lualib_test.lua") 18 18 dofile("../../nv.lua") 19 20 if _ACTION == "clean" then21 for action in premake.action.each() do22 os.rmdir(action.trigger)23 end24 end
Note: See TracChangeset
for help on using the changeset viewer.