To use C ++, I need a macro that will replace a function if it is running in release mode. . So, the function will be executed in debug mode, but this will not happen in release mode
like this:
static void foo (int, int) #ifdef NDEBUG #define foo (X, y) #endif ... and the function is defined in a separate .cpp file in the body and is a class, which is why I think this is part of Not working
Actual code ..
Header
static void ValidateInput (constant SeriesID * CurrentSeries, constant AEnum_TT_TICK_ROUND & roundType = TT_TICK_ROUND_NONE )? ; CPP
zero TTBaseTick :: ValidateInput (constant SeriesID * CurrentSeries, constant AEnum_TT_TICK_ROUND & roundType) {_DEBUG #ifndef if (! CurrentSeries) { Throw TTTick :: East (TTTick :: SeriesNull); } And if (current spellings-> precision & lt; = 0) {TT Tick :: X (TTT :: :: Precision unauthorized); } Else if (! RoundType.IsValidValue (roundType)) {tttik :: x (tttik :: invalid param); } "Textprop =" text "> static void foo (int, int); text after the #endif}
Comments
Post a Comment