Changeset 5334 in orxonox.OLD for trunk/src/util/loading
- Timestamp:
- Oct 9, 2005, 12:23:57 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/loading/load_param.cc
r5332 r5334 74 74 for(int i = 0; i < paramCount; i++) 75 75 { 76 defaultVal[0] = '\0'; 76 77 // parameters parsed 77 78 int tmpType = va_arg (types, int); 78 79 this->paramDesc->types[i] = tmpType; 79 80 //! @todo SWITCH CASE WITH l_[TYPE]_TYPE -> much faster (more usefull)81 80 switch (tmpType) 82 81 { 83 82 case ParameterInt: 84 sprintf(defaultVal, "%d", va_arg(types, l_INT_TYPE));83 sprintf(defaultVal, "%d", va_arg(types, int)); 85 84 break; 86 85 case ParameterLong: … … 97 96 break; 98 97 } 99 100 98 this->paramDesc->defaultValues[i] = new char[strlen(defaultVal)+1]; 101 99 strcpy(this->paramDesc->defaultValues[i], defaultVal);
Note: See TracChangeset
for help on using the changeset viewer.