Changeset 7212 in orxonox.OLD for branches/std/src/lib/util/executor
- Timestamp:
- Mar 10, 2006, 5:28:52 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/std/src/lib/util/executor/executor.h
r7211 r7212 192 192 #define ExecutorExecute1(t1) \ 193 193 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))) 195 195 196 196 //! execute-macro for functions with two parameters … … 270 270 virtual void execute (BaseObject* object, const void* parameters = NULL) 271 271 { 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,", '\\'); 273 276 //! FUNCTOR_LIST is the List of Executive Functions 274 277 #define FUNCTOR_LIST(x) ExecutorExecute ## x … … 332 335 virtual void execute (BaseObject* object, const void* parameters = NULL) 333 336 { 334 SubString sub(((const char*)parameters), " \n\t,"); 337 SubString sub; 338 if (parameters != NULL) 339 sub.split((const char*)parameters, " \n\t,", '\\'); 335 340 //! FUNCTOR_LIST is the List of Executive Functions 336 341 #define FUNCTOR_LIST(x) ExecutorExecute ## x
Note: See TracChangeset
for help on using the changeset viewer.