Changeset 703 for code/branches/FICN/src/orxonox/core/CoreIncludes.h
- Timestamp:
- Dec 27, 2007, 9:38:55 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/core/CoreIncludes.h
r682 r703 143 143 varname = container##varname->getValue(varname) 144 144 145 /** 146 @brief Sets the variable back to the previously defined default-value. 147 @param varname The name of the variable 148 */ 149 #define ResetConfigValue(varname) \ 150 orxonox::ConfigValueContainer* container##varname##reset = this->getIdentifier()->getConfigValueContainer(#varname); \ 151 if (container##varname##reset) \ 152 { \ 153 container##varname##reset->resetConfigValue(); \ 154 varname = container##varname->getValue(varname); \ 155 } \ 156 else \ 157 COUT(2) << "Warning: Couldn't reset variable " << #varname << ", corresponding container doesn't exist." << std::endl 158 145 159 #endif /* _CoreIncludes_H__ */
Note: See TracChangeset
for help on using the changeset viewer.