Changeset 8386 in orxonox.OLD for branches/script_engine/src/lib/util
- Timestamp:
- Jun 14, 2006, 2:59:08 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/script_engine/src/lib/util/executor/executor_lua.cc
r8385 r8386 20 20 std::string temp; 21 21 22 template<typename type> type* fromLua(lua_State* state, int index) { type *obj = Lunar<type>::check(state, 1); return obj;};22 template<typename type> type* fromLua(lua_State* state, int index) { type *obj = Lunar<type>::check(state, 1); lua_remove(L, 1); return obj;}; 23 23 template<> bool fromLua<bool>(lua_State* state, int index) { return lua_toboolean(state, index); }; 24 24 template<> int fromLua<int>(lua_State* state, int index) { return (int)lua_tonumber(state, index); };
Note: See TracChangeset
for help on using the changeset viewer.