Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 10, 2006, 5:28:52 AM (18 years ago)
Author:
bensch
Message:

should be better, but hey…. its late

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/std/src/lib/util/executor/executor.h

    r7211 r7212  
    192192#define ExecutorExecute1(t1) \
    193193   else if (this->paramCount == 1 && this->defaultValue[0] == t1##_PARAM) \
    194     EXECUTOREXECUTER(_1_##t1)(t1##_FUNC(sub.getString(0), t1##_DEFGRAB(0)))
     194    EXECUTOREXECUTER(_1_##t1)(t1##_FUNC((const char*)parameters, t1##_DEFGRAB(0)))
    195195
    196196//! execute-macro for functions with two parameters
     
    270270    virtual void execute (BaseObject* object, const void* parameters = NULL)
    271271    {
    272       SubString sub((const char*)parameters, " \n\t", '\\');
     272      SubString sub;
     273      printf("===%s\n", (const char*)parameters);
     274      if (parameters != NULL)
     275        sub.split((const char*)parameters, " \n\t,", '\\');
    273276//! FUNCTOR_LIST is the List of Executive Functions
    274277#define FUNCTOR_LIST(x) ExecutorExecute ## x
     
    332335    virtual void execute (BaseObject* object, const void* parameters = NULL)
    333336    {
    334       SubString sub(((const char*)parameters), " \n\t,");
     337      SubString sub;
     338      if (parameters != NULL)
     339        sub.split((const char*)parameters, " \n\t,", '\\');
    335340//! FUNCTOR_LIST is the List of Executive Functions
    336341#define FUNCTOR_LIST(x) ExecutorExecute ## x
Note: See TracChangeset for help on using the changeset viewer.