Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 4, 2009, 3:12:10 PM (15 years ago)
Author:
rgrieder
Message:

Modified config value macros so you can use them as one-liner.
And the macro code also gone: it can now be easily debugged in an inline function.
(Changes do not apply to ModifyConfigValue because it was impossible to do).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/libraries/core/Shell.cc

    r6190 r6243  
    9898        SetConfigValue(historyOffset_, 0)
    9999            .callback(this, &Shell::commandHistoryOffsetChanged);
    100         SetConfigValueVectorGeneric(commandHistoryConfigFileType_, commandHistory_, std::vector<std::string>());
     100        setConfigValueGeneric(this, &commandHistory_, commandHistoryConfigFileType_, "Shell", "commandHistory_", std::vector<std::string>());
    101101
    102102#ifdef ORXONOX_RELEASE
     
    105105        const unsigned int defaultLevel = 3;
    106106#endif
    107         SetConfigValueGeneric(ConfigFileType::Settings, softDebugLevel_, "softDebugLevel" + this->consoleName_, "OutputHandler", defaultLevel)
     107        setConfigValueGeneric(this, &softDebugLevel_, ConfigFileType::Settings, "OutputHandler", "softDebugLevel" + this->consoleName_, defaultLevel)
    108108            .description("The maximal level of debug output shown in the Shell");
    109109        this->setSoftDebugLevel(this->softDebugLevel_);
Note: See TracChangeset for help on using the changeset viewer.