Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8100 in orxonox.OLD


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

executor should work

Location:
branches/script_engine/src/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/script_engine/src/lib/script_engine/Makefile.am

    r8093 r8100  
    66noinst_LIBRARIES = libORXscript.a
    77
    8 libORXscript_a_SOURCES =
     8libORXscript_a_SOURCES = \
     9                script.cc\
     10                script_manager.cc
    911
    1012AM_CPPFLAGS= @LUA_INCLUDES@
     
    1214bin_PROGRAMS = example
    1315example_SOURCES = \
    14                 example.cc\
    15                 script.cc\
    16                 script_manager.cc
     16                example.cc \
     17                \
     18                ../util/executor/executor_lua.cc
     19
    1720
    1821
     
    2326
    2427
     28
    2529noinst_HEADERS = \
    2630                lunar.h\
  • 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.