Changeset 7211 in orxonox.OLD for branches/std/src/lib/util/executor
- Timestamp:
- Mar 10, 2006, 4:52:21 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/std/src/lib/util/executor/executor.h
r7210 r7211 16 16 //! an enumerator for the definition of the Type. 17 17 typedef enum { 18 Executor_Objective = 0x00000001,19 Executor_Static = 0x00000002,20 21 Executor_NoLoadString = 0x00000010,18 Executor_Objective = 1, 19 Executor_Static = 2, 20 21 Executor_NoLoadString = 8, 22 22 } Executor_Type; 23 23 … … 192 192 #define ExecutorExecute1(t1) \ 193 193 else if (this->paramCount == 1 && this->defaultValue[0] == t1##_PARAM) \ 194 EXECUTOREXECUTER(_1_##t1)(t1##_FUNC( (const char*)parameters, t1##_DEFGRAB(0)))194 EXECUTOREXECUTER(_1_##t1)(t1##_FUNC(sub.getString(0), 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 std::string*) parameters)->c_str(), " \n\t,", '\\');272 SubString sub((const char*)parameters, " \n\t", '\\'); 273 273 //! FUNCTOR_LIST is the List of Executive Functions 274 274 #define FUNCTOR_LIST(x) ExecutorExecute ## x … … 332 332 virtual void execute (BaseObject* object, const void* parameters = NULL) 333 333 { 334 SubString sub((const char*)parameters, " \n\t,");334 SubString sub(((const char*)parameters), " \n\t,"); 335 335 //! FUNCTOR_LIST is the List of Executive Functions 336 336 #define FUNCTOR_LIST(x) ExecutorExecute ## x
Note: See TracChangeset
for help on using the changeset viewer.