Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
#define P6ASSERT (   expr)    ((expr)?P6R::eOk:P6R::p6Assert(P6TEXT(#expr),__FILE__,__LINE__))

P6ASSERT should be used in place of any platform/compiler specific assert.

On all platforms, if expr equals P6FALSE, P6ASSERT() will log the assert to the configured logfile including a stacktrace. This is done both in debug and release mode builds. If expr equals P6FALSE, the function returns immediately.

Windows Platforms In debug mode builds, once the log message is written, P6ASSERT will execute a breakpoint so that the program can be debugged.

Non-Windows Platforms In debug mode builds, once the log message is written, P6ASSERT will attempt to core the process by deferening a NULL pointer. The core can then be interrogated in a debugger.

In release mode builds, once the log message is written, the function returns so execution can continue.

Definition at line 238 of file p6defs.h.