Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 20, 2008, 10:30:28 PM (16 years ago)
Author:
rgrieder
Message:

Added CommandLine class.
You can now call SetCommandLineArgument like SetConsoleCommand and hereby define a new command line argument. They are passed in main() and then they can be accessed by commandLine::getCommandLineArgument().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/core/Exception.h

    r1660 r1663  
    5959            General,
    6060            FileNotFound,
     61            Argument,
    6162            PluginsNotFound,
    6263            InitialisationFailed,
     
    119120            RETURN_EXCEPTION_CODE(General)
    120121            RETURN_EXCEPTION_CODE(FileNotFound);
     122            RETURN_EXCEPTION_CODE(Argument);
    121123            RETURN_EXCEPTION_CODE(PluginsNotFound);
    122124            RETURN_EXCEPTION_CODE(InitialisationFailed);
     
    132134    CREATE_ORXONOX_EXCEPTION(General);
    133135    CREATE_ORXONOX_EXCEPTION(FileNotFound);
     136    CREATE_ORXONOX_EXCEPTION(Argument);
    134137    CREATE_ORXONOX_EXCEPTION(PluginsNotFound);
    135138    CREATE_ORXONOX_EXCEPTION(InitialisationFailed);
     
    142145    // define an assert macro that can display a message
    143146#ifndef NDEBUG
    144 #define OrxAssert(condition, errorMessage) \
    145     condition ? ((void)0) : (void)(orxonox::OutputHandler::getOutStream().setOutputLevel(ORX_ERROR) << errorMessage << std::endl); \
    146     assert(condition)
     147#define OrxAssert(assertion, errorMessage) \
     148    assertion ? ((void)0) : (void)(orxonox::OutputHandler::getOutStream().setOutputLevel(ORX_ERROR) << errorMessage << std::endl); \
     149    assert(assertion)
    147150#else
    148151#define OrxAssert(condition, errorMessage)  ((void)0)
Note: See TracChangeset for help on using the changeset viewer.