LibreOffice
LibreOffice 24.8 SDK C/C++ API Reference
|
Macros | |
#define | OSL_ASSERT(c) |
If cond is false, reports an error. | |
#define | OSL_ENSURE(c, m) |
If cond is false, reports an error with message msg. | |
#define | OSL_FAIL(m) |
Reports an error with message msg unconditionally. | |
#define | OSL_VERIFY(c) |
Evaluates the expression and if it is false, reports an error. | |
#define | OSL_PRECOND(c, m) |
Check the precondition of functions. | |
#define | OSL_POSTCOND(c, m) |
Check the postcondition of functions. | |
Assertions (cond is bool, msg is char*).
#define OSL_ASSERT | ( | c | ) |
If cond is false, reports an error.
#define OSL_ENSURE | ( | c, | |
m ) |
If cond is false, reports an error with message msg.
#define OSL_FAIL | ( | m | ) |
#define OSL_POSTCOND | ( | c, | |
m ) |
Check the postcondition of functions.
Functionally equivalent to OSL_ENSURE(cond, msg).
#define OSL_PRECOND | ( | c, | |
m ) |
Check the precondition of functions.
Functionally equivalent to OSL_ENSURE(cond, msg).
#define OSL_VERIFY | ( | c | ) |
Evaluates the expression and if it is false, reports an error.
The expression is evaluated once without regard of the value of OSL_DEBUG_LEVEL.
Example: