Pepper_37_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.
Definition in file logging.h.
#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.
Definition at line 16 of file logging.h.
Referenced by pp::ArrayOutputAdapter< PP_DirectoryEntry >::GetDataBuffer(), pp::ResourceArrayOutputAdapter< T >::GetDataBuffer(), pp::ResourceArrayOutputAdapterWithStorage< T >::output(), pp::CompletionCallback::Run(), pp::CompletionCallback::RunAndClear(), pp::Size::set_height(), pp::Rect::set_height(), pp::FloatSize::set_height(), pp::FloatRect::set_height(), pp::Size::set_width(), pp::Rect::set_width(), pp::FloatSize::set_width(), and pp::FloatRect::set_width().
#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: