Handling Simulation vs Target differences

Category |  Applicable to |  Description |  See also


Category:

Top

Micro-RTS


Applicable to:

Top

All Versions


Description:

Top

Since there may be differences in the source code when executing for the SimulationRTS as opposed to the TargetRTS, the ObjecTime internal compiler provides the following conditional compilation flag for cases where SimulationRTS differs from TargetRTS:

    __RTSInternal__

Sample usage:

#ifdef __RTSInternal__
    // code for simulation RTS situation
    :
#else
    // code for target RTS situation
    :
#endif

See also:

Top

ObjecTime C++ User Guide, TargetRTS Restrictions section for additional details.


 

Copyright © 1999, ObjecTime Limited.