Changeset 7300 in orxonox.OLD for trunk/src/lib/util
- Timestamp:
- Apr 16, 2006, 7:30:56 PM (19 years ago)
- Location:
- trunk/src/lib/util
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/util/executor/executor.cc
r7221 r7300 53 53 54 54 this->paramCount = 0; 55 for (unsigned int i = 0; i < FUNCTOR_MAX_ARGUMENTS; i++)55 for (unsigned int i = 0; i <= FUNCTOR_MAX_ARGUMENTS; i++) 56 56 { 57 if (this->defaultValue[i] == MT_NULL )57 if (this->defaultValue[i] == MT_NULL || i == FUNCTOR_MAX_ARGUMENTS) 58 58 { 59 59 this->paramCount = i; -
trunk/src/lib/util/executor/executor.h
r7221 r7300 121 121 122 122 #define ExecutorFunctionPoiter5(t1, t2, t3, t4, t5) \ 123 void EXECUTORINCLASS(*functionPointer_5_##t1##_##t2##_##t3##_##t4##_##t5)(t1##_TYPE, t2##_TYPE, t3##_TYPE, t4##_TYPE, t5##_TYPE); \123 void EXECUTORINCLASS(*functionPointer_5_##t1##_##t2##_##t3##_##t4##_##t5)(t1##_TYPE, t2##_TYPE, t3##_TYPE, t4##_TYPE, t5##_TYPE); 124 124 125 125 … … 218 218 219 219 220 221 //////////\////////// 220 ///////////////////// 222 221 // DYNAMIC FUNCTOR // 223 /////////// \/////////222 ///////////////////// 224 223 #ifdef FUNCTOR_LIST 225 224 #undef FUNCTOR_LIST -
trunk/src/lib/util/substring.h
r7221 r7300 31 31 unsigned int split(const std::string& string, const std::string& splitters, char escapeChar ='\\', char safemode_char = '"', char comment_char = '\0'); 32 32 33 33 inline unsigned int getCount() { return this->strings.size(); }; 34 const std::string& getString(unsigned int i) { return (i < this->strings.size()) ? this->strings[i] : emptyString; }; // safety-precaution 34 35 const std::string& operator[](unsigned int i) { return this->getString(i); }; 35 36 inline unsigned int getCount() { return this->strings.size(); };37 const std::string& getString(unsigned int i) { return (i < this->strings.size()) ? this->strings[i] : emptyString; };38 36 unsigned int getOffset(unsigned int i); 39 37
Note: See TracChangeset
for help on using the changeset viewer.