Changeset 8527 in orxonox.OLD for trunk/src/lib/util/executor/executor_lua.cc
- Timestamp:
- Jun 16, 2006, 1:50:21 PM (19 years ago)
- File:
-
- 1 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); };
Note: See TracChangeset
for help on using the changeset viewer.