Pepper_56_C++_interfaces
Pepper_56_C++_interfaces
|
#include <cassert>
Go to the source code of this file.
Macros | |
#define | PP_DCHECK(a) assert(a) |
#define | PP_NOTREACHED() assert(false) |
This file defines two macro asserts.
#define PP_DCHECK | ( | a | ) | assert(a) |
This macro asserts that 'a' evaluates to true. In debug mode, this macro will crash the program if the assertion evaluates to false. It (typically) has no effect in release mode.
#define PP_NOTREACHED | ( | ) | assert(false) |
This macro asserts false in debug builds. It's used in code paths that you don't expect to execute.
Example: