- Timestamp:
- Sep 17, 2006, 2:50:15 PM (18 years ago)
- 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 7 7 8 8 libORXexecutor_a_SOURCES = \ 9 executor/executor.cc \10 9 executor/executor_lua_state.cc \ 11 10 executor/executor_substring.cc -
branches/new_class_id/src/lib/util/executor/executor_lua_state.cc
r9752 r9753 23 23 24 24 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; }; 25 template<typename type> type fromLua(lua_State* state, int index) { type *obj = Lunar<type>::check(state, 1); lua_remove(state, 1); return obj; }; 26 template<typename type> void toLua(lua_State* state, type value) { Lunar<type>::push(state, value, false); }; 26 27 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]; }; 28 template<> 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 52 52 /** @see template<typename type> inline type fromLua(lua_State* state, int index) */ 53 53 template<> 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) */ 55 template<> const std::string& fromLua<const std::string&>(lua_State* state, int index); 54 56 55 57
Note: See TracChangeset
for help on using the changeset viewer.