Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9916 in orxonox.OLD for trunk/src/lib/script_engine


Ignore:
Timestamp:
Nov 3, 2006, 9:29:16 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: Windows runs again without any segfaults
it seems, that windows links object files differently… and extremely strange

Location:
trunk/src/lib/script_engine
Files:
3 edited

Legend:

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

    r9869 r9916  
    1313
    1414libORXscript_a_SOURCES = \
     15                script_class.cc \
     16                script_method.cc \
    1517                script.cc \
    1618                script_manager.cc \
    17                 script_class.cc \
    18                 script_method.cc \
    1919                executor_lua_state.cc
    2020
  • trunk/src/lib/script_engine/script.cc

    r9869 r9916  
    2424
    2525ObjectListDefinition(Script);
    26 
    27 CREATE_SCRIPTABLE_CLASS(Script,
    28                     addMethod("addObject", Executor2<Script, lua_State*,const std::string&, const std::string& >(&Script::addObject))
    29                     ->addMethod("registerClass", Executor1<Script, lua_State*,const std::string&>(&Script::registerClass))
    30                     ->addMethod("selectFunction", Executor2ret<Script, lua_State*, bool, const std::string&, int >(&Script::selectFunction))
    31                     ->addMethod("executeFunction", Executor0ret<Script, lua_State*,bool >(&Script::executeFunction))
    32                      );
    3326
    3427
  • trunk/src/lib/script_engine/script_class.cc

    r9897 r9916  
    1717
    1818#include "script_class.h"
     19#include "script.h"
     20#include "debug.h"
    1921#include <cassert>
    2022
    2123ObjectListDefinition(ScriptClass);
     24
     25CREATE_SCRIPTABLE_CLASS(Script,
     26                    addMethod("addObject", Executor2<Script, lua_State*,const std::string&, const std::string& >(&Script::addObject))
     27                    ->addMethod("registerClass", Executor1<Script, lua_State*,const std::string&>(&Script::registerClass))
     28                    ->addMethod("selectFunction", Executor2ret<Script, lua_State*, bool, const std::string&, int >(&Script::selectFunction))
     29                    ->addMethod("executeFunction", Executor0ret<Script, lua_State*,bool >(&Script::executeFunction))
     30                     );
    2231/**
    2332 * @brief standard constructor
     
    2736    : BaseObject(name), _classID(classID)
    2837{
     38  PRINTF(4)("Name %s\n", name.c_str());
    2939  assert(scriptMethods != NULL);
    3040  this->registerObject(this, ScriptClass::_objectList);
Note: See TracChangeset for help on using the changeset viewer.