Pepper_42_C++_interfaces
Macros
logging.h File Reference
#include <cassert>
Include dependency graph for logging.h:

Go to the source code of this file.

Macros

#define PP_DCHECK(a)   assert(a)
 
#define PP_NOTREACHED()   assert(false)
 

Detailed Description

This file defines two macro asserts.

Definition in file logging.h.

Macro Definition Documentation

#define PP_DCHECK (   a)    assert(a)
#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:

if (!pointer) {
// Pointer wasn't valid! This shouldn't happen.
return;
}
// Do stuff to the pointer, since you know it's valid.
pointer->DoSomething();

Definition at line 32 of file logging.h.