Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8100 in orxonox.OLD for branches/script_engine/src/lib/util


Ignore:
Timestamp:
Jun 1, 2006, 6:48:05 PM (19 years ago)
Author:
bensch
Message:

executor should work

File:
1 edited

Legend:

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

    r8092 r8100  
    1818#include "executor_lua.h"
    1919
     20std::string temp;
     21
    2022template<> 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_toumber(state, index); };
     23template<> int fromLua<int>(lua_State* state, int index) { return (int)lua_tonumber(state, index); };
    2224template<> unsigned int fromLua<unsigned int>(lua_State* state, int index) { return (unsigned int)lua_tonumber(state, index); };
    2325template<> float fromLua<float>(lua_State* state, int index) { return (float)lua_tonumber(state, index); };
    24 template<> char fromLua<char>(lua_State* state, int index) { reutnr (char)lua_tonumber(state, index); };
    25 template<> const std::string& fromLua<const std::string&>(lua_State* state, int index) { return lua_tostring(state, index); };
     26template<> char fromLua<char>(lua_State* state, int index) { return (char)lua_tonumber(state, index); };
     27template<> const std::string& fromLua<const std::string&>(lua_State* state, int index) { temp = lua_tostring(state, index); return temp; };
    2628
    2729
Note: See TracChangeset for help on using the changeset viewer.