Changeset 8527 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Jun 16, 2006, 1:50:21 PM (19 years ago)
- Location:
- trunk/src/lib/util/executor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/util/executor/executor_lua.cc
r8408 r8527 22 22 std::string temp[5]; 23 23 24 template<typename type> type *fromLua(lua_State* state, int index) { type *obj = Lunar<type>::check(state, 1); lua_remove(state, 1); return obj;};24 template<typename type> type fromLua(lua_State* state, int index) { type *obj = Lunar<type>::check(state, 1); lua_remove(state, 1); return obj;}; 25 25 template<> bool fromLua<bool>(lua_State* state, int index) { return lua_toboolean(state, index); }; 26 26 template<> int fromLua<int>(lua_State* state, int index) { return (int)lua_tonumber(state, index); }; -
trunk/src/lib/util/executor/executor_lua.h
r8408 r8527 22 22 template<> const std::string& fromLua<const std::string&>(lua_State* state, int index); 23 23 24 25 24 template<typename type> void toLua(lua_State* state, type value); 26 25 template<> void toLua<bool>(lua_State* state, bool value);
Note: See TracChangeset
for help on using the changeset viewer.