Changeset 8388 in orxonox.OLD for branches/script_engine/src/lib
- Timestamp:
- Jun 14, 2006, 3:05:41 PM (19 years ago)
- Location:
- branches/script_engine/src/lib/util/executor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/script_engine/src/lib/util/executor/executor_lua.cc
r8387 r8388 18 18 #include "executor_lua.h" 19 19 20 std::string temp ;20 std::string temp[5]; 21 21 22 22 template<typename type> type* fromLua(lua_State* state, int index) { type *obj = Lunar<type>::check(state, 1); lua_remove(state, 1); return obj;}; … … 26 26 template<> float fromLua<float>(lua_State* state, int index) { return (float)lua_tonumber(state, index); }; 27 27 template<> char fromLua<char>(lua_State* state, int index) { return (char)lua_tonumber(state, index); }; 28 template<> const std::string& fromLua<const std::string&>(lua_State* state, int index) { temp = lua_tostring(state, index); return temp; };28 template<> const std::string& fromLua<const std::string&>(lua_State* state, int index) { temp[index] = lua_tostring(state, index); return temp[index]; }; 29 29 30 30 -
branches/script_engine/src/lib/util/executor/executor_lua.h
r8385 r8388 340 340 }; 341 341 342 343 344 345 346 347 348 342 #endif /* _EXECUTOR_LUA_H */
Note: See TracChangeset
for help on using the changeset viewer.