Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8387 in orxonox.OLD for branches/script_engine/src


Ignore:
Timestamp:
Jun 14, 2006, 3:02:31 PM (18 years ago)
Author:
snellen
Message:

executor removes the userdata after getting it from lua

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/script_engine/src/lib/util/executor/executor_lua.cc

    r8386 r8387  
    2020std::string temp;
    2121
    22 template<typename type> type* fromLua(lua_State* state, int index) { type *obj = Lunar<type>::check(state, 1); lua_remove(L, 1); return obj;};
     22template<typename type> type* fromLua(lua_State* state, int index) { type *obj = Lunar<type>::check(state, 1); lua_remove(state, 1); return obj;};
    2323template<> bool fromLua<bool>(lua_State* state, int index) { return lua_toboolean(state, index); };
    2424template<> int fromLua<int>(lua_State* state, int index) { return (int)lua_tonumber(state, index); };
Note: See TracChangeset for help on using the changeset viewer.