Internal API Reference - Macros |
Desktop Apps Training - Policy Kit | ||||||||||
Synopsis
Detailskit_print_backtrace ()void kit_print_backtrace (void); Print a back trace if built with -rdynamic or similar.
kit_assert()#define kit_assert(expr) Debugging macro to terminate the application if the assertion fails. If the assertion fails (i.e. the expression is not true), an error message is logged and the application is terminated.
kit_return_if_fail()#define kit_return_if_fail(expr) Returns from the current function if the expression is not true. If the expression evaluates to FALSE, an error message is logged and the function returns. This can only be used in functions which do not return a value.
kit_return_val_if_fail()#define kit_return_val_if_fail(expr,val) Returns from the current function, returning the value val, if the expression is not true. If the expression evaluates to FALSE, an error message is logged and val is returned.
|