Changeset 8100 in orxonox.OLD for branches/script_engine/src/lib/util
- Timestamp:
- Jun 1, 2006, 6:48:05 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/script_engine/src/lib/util/executor/executor_lua.cc
r8092 r8100 18 18 #include "executor_lua.h" 19 19 20 std::string temp; 21 20 22 template<> bool fromLua<bool>(lua_State* state, int index) { return lua_toboolean(state, index); }; 21 template<> int fromLua<int>(lua_State* state, int index) { return (int)lua_to umber(state, index); };23 template<> int fromLua<int>(lua_State* state, int index) { return (int)lua_tonumber(state, index); }; 22 24 template<> unsigned int fromLua<unsigned int>(lua_State* state, int index) { return (unsigned int)lua_tonumber(state, index); }; 23 25 template<> float fromLua<float>(lua_State* state, int index) { return (float)lua_tonumber(state, index); }; 24 template<> char fromLua<char>(lua_State* state, int index) { re utnr(char)lua_tonumber(state, index); };25 template<> const std::string& fromLua<const std::string&>(lua_State* state, int index) { return lua_tostring(state, index); };26 template<> char fromLua<char>(lua_State* state, int index) { return (char)lua_tonumber(state, index); }; 27 template<> const std::string& fromLua<const std::string&>(lua_State* state, int index) { temp = lua_tostring(state, index); return temp; }; 26 28 27 29
Note: See TracChangeset
for help on using the changeset viewer.