Macros | |
#define | __BEGIN_DECLS |
#define | __END_DECLS |
#define | OC_PANIC(is_fatal, body) |
Report an unexpected nasty error that should not happen. | |
Functions | |
void | debug_print_backtrace (int dbg_level) |
__BEGIN_DECLS void | openchange_abort (bool is_fatal) |
#define __BEGIN_DECLS |
#define __END_DECLS |
#define OC_PANIC | ( | is_fatal, | |
body | |||
) |
Report an unexpected nasty error that should not happen.
It will print information about the error and if is_fatal is true abort() will be called.
DEBUG macro will not be used to print a report with the following format:
[in] | is_fatal | Boolean to indicate the error is fatal. If it is true abort() will be called, false will have no effect. |
[in] | body | Text to print out using DEBUG(0, body) macro. |
Examples:
void debug_print_backtrace | ( | int | dbg_level | ) |
print a backtrace (not using DEBUG() macro).
Referenced by openchange_abort().
__BEGIN_DECLS void openchange_abort | ( | bool | is_fatal | ) |
Handle Openchange calls. Depending on configuration and severity it may really abort() or just skip it
References debug_print_backtrace().
![]() ![]() ![]() |
This content is licensed under the Creative Commons Attribution ShareAlike License v. 3.0: http://creativecommons.org/licenses/by-sa/3.0/ |