Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.