Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9753 in orxonox.OLD for branches


Ignore:
Timestamp:
Sep 17, 2006, 2:50:15 PM (18 years ago)
Author:
bensch
Message:

links and compiles again

Location:
branches/new_class_id/src/lib/util
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/util/Makefile.am

    r9748 r9753  
    77
    88libORXexecutor_a_SOURCES = \
    9                 executor/executor.cc \
    109                executor/executor_lua_state.cc \
    1110                executor/executor_substring.cc
  • branches/new_class_id/src/lib/util/executor/executor_lua_state.cc

    r9752 r9753  
    2323
    2424
    25 template<typename type> inline type fromLua(lua_State* state, int index) { type *obj = Lunar<type>::check(state, 1); lua_remove(state, 1); return obj; };
     25template<typename type> type fromLua(lua_State* state, int index) { type *obj = Lunar<type>::check(state, 1); lua_remove(state, 1); return obj; };
     26template<typename type> void toLua(lua_State* state, type value) { Lunar<type>::push(state, value, false); };
    2627
    27 template<typename type> void toLua(lua_State* state, type value) { Lunar<type>::push(state, value, false); };
    28 /** @see template<typename type> inline type fromLua(lua_State* state, int index) */
    29 template<> inline const std::string& fromLua<const std::string&>(lua_State* state, int index) { temp[index] = lua_tostring(state, index); return temp[index]; };
     28template<> const std::string& fromLua<const std::string&>(lua_State* state, int index) { temp[index] = lua_tostring(state, index); return temp[index]; };
  • branches/new_class_id/src/lib/util/executor/executor_lua_state.h

    r9752 r9753  
    5252/** @see template<typename type> inline type fromLua(lua_State* state, int index) */
    5353template<> inline char fromLua<char>(lua_State* state, int index) { return (char)lua_tonumber(state, index); };
     54/** @see template<typename type> inline type fromLua(lua_State* state, int index) */
     55template<> const std::string& fromLua<const std::string&>(lua_State* state, int index);
    5456
    5557
Note: See TracChangeset for help on using the changeset viewer.