Main Page Modules Class Hierarchy Data Structures File List Data Fields Globals Related Pages

# oscl_assert.h File Reference

The file oscl_assert.h provides an OSCL_ASSERT macro to document assumptions and test them during development. More...

`#include "oscl_base.h"`
`#include "oscl_assert.inl"`

Go to the source code of this file.

## Defines
#define | OSCL_ASSERT(_expr) ((_expr)?((void)0):OSCL_Assert(# _expr,__FILE__,__LINE__))
## Functions
OSCL_COND_IMPORT_REF void | _OSCL_Abort ()
| This function terminates the current process abnormally.
OSCL_IMPORT_REF void | OSCL_Assert (const char *expr, const char *filename, int line_number)
| OSCL_ASSERT macro evaluates an expression and when the result is false, prints a diagnostic message and aborts the program.

## Detailed Description

The file oscl_assert.h provides an OSCL_ASSERT macro to document assumptions and test them during development.