Changeset 8387 in orxonox.OLD for branches/script_engine/src
- Timestamp:
- Jun 14, 2006, 3:02:31 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/script_engine/src/lib/util/executor/executor_lua.cc
r8386 r8387 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); lua_remove( L, 1); return obj;};22 template<typename type> type* fromLua(lua_State* state, int index) { type *obj = Lunar<type>::check(state, 1); lua_remove(state, 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.