Changeset 5147 in orxonox.OLD for trunk/src/util
- Timestamp:
- Aug 27, 2005, 2:51:14 AM (19 years ago)
- Location:
- trunk/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/shell_command.cc
r5146 r5147 200 200 if (paramBegin == NULL) 201 201 paramBegin = commandBegin + strlen(elem->getName()); 202 while (*paramBegin == ' ') 203 paramBegin++; 202 204 203 205 if (objectPointer != NULL && paramBegin != NULL) -
trunk/src/util/shell_command.h
r5146 r5147 70 70 #define ShellCommandExecute1(t1) \ 71 71 else if (this->paramCount == 1 && this->parameters[0] == t1##_PARAM) \ 72 (dynamic_cast<T*>(object)->*functionPointer_1_##t1)( 0)//t1##_FUNC(parameters, 0))72 (dynamic_cast<T*>(object)->*functionPointer_1_##t1)(t1##_FUNC(parameters, 0)) 73 73 74 74 … … 159 159 virtual void executeCommand (BaseObject* object, const char* parameters) 160 160 { 161 SubString params(parameters, ','); 161 if (parameters != NULL) 162 SubString params(parameters, ','); 162 163 #define FUNCTOR_LIST(x) ShellCommandExecute ## x 163 164 //#include "functor_list.h"
Note: See TracChangeset
for help on using the changeset viewer.