The definition depends on the value of the preprocessor symbols USE_SYSTEM_ASSERT and NDEBUG (these symbols should normally be defined in file CompilerSwitches
). If either or both of these two symbols are defined, then the standard definition of assert as contained in the standard library is used. If neither of these two symbols is defined, then assert is defined to output an error message whenever the argument expression is true. This form of assert is useful when it is desirable to be notified of assertion violation but it is also desirable to continue execution after the violation in order to check how the program copes with a non-nominal situation.
Definition in file DebugSupport.h.
Go to the source code of this file.