Changeset 8100 in orxonox.OLD
- Timestamp:
- Jun 1, 2006, 6:48:05 PM (18 years ago)
- Location:
- branches/script_engine/src/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/script_engine/src/lib/script_engine/Makefile.am
r8093 r8100 6 6 noinst_LIBRARIES = libORXscript.a 7 7 8 libORXscript_a_SOURCES = 8 libORXscript_a_SOURCES = \ 9 script.cc\ 10 script_manager.cc 9 11 10 12 AM_CPPFLAGS= @LUA_INCLUDES@ … … 12 14 bin_PROGRAMS = example 13 15 example_SOURCES = \ 14 example.cc\ 15 script.cc\ 16 script_manager.cc 16 example.cc \ 17 \ 18 ../util/executor/executor_lua.cc 19 17 20 18 21 … … 23 26 24 27 28 25 29 noinst_HEADERS = \ 26 30 lunar.h\ -
branches/script_engine/src/lib/util/executor/executor_lua.cc
r8092 r8100 18 18 #include "executor_lua.h" 19 19 20 std::string temp; 21 20 22 template<> bool fromLua<bool>(lua_State* state, int index) { return lua_toboolean(state, index); }; 21 template<> int fromLua<int>(lua_State* state, int index) { return (int)lua_to umber(state, index); };23 template<> int fromLua<int>(lua_State* state, int index) { return (int)lua_tonumber(state, index); }; 22 24 template<> unsigned int fromLua<unsigned int>(lua_State* state, int index) { return (unsigned int)lua_tonumber(state, index); }; 23 25 template<> float fromLua<float>(lua_State* state, int index) { return (float)lua_tonumber(state, index); }; 24 template<> char fromLua<char>(lua_State* state, int index) { re utnr(char)lua_tonumber(state, index); };25 template<> const std::string& fromLua<const std::string&>(lua_State* state, int index) { return lua_tostring(state, index); };26 template<> char fromLua<char>(lua_State* state, int index) { return (char)lua_tonumber(state, index); }; 27 template<> const std::string& fromLua<const std::string&>(lua_State* state, int index) { temp = lua_tostring(state, index); return temp; }; 26 28 27 29
Note: See TracChangeset
for help on using the changeset viewer.