Adaptive Framework
0.9.0
|
Files | |
file | afw_debug.h |
Adaptive Framework Software Debug Header. | |
Macros | |
#define | AFW_DEBUG_STATIC_DEBUG_ID(label, debug_id) |
Define a static debug_id rti. More... | |
#define | afw_debug(flag_index, instance, message, xctx) |
If applicable, write debug. More... | |
#define | afw_debug_fz(flag_index, instance, xctx, format_z, ...) |
If applicable, write debug using a printf style format. More... | |
#define | afw_debug_vz(flag_index, instance, format_z, ap, xctx) |
If applicable, write debug using a printf style format and va_list. More... | |
#define | afw_debug_z(flag_index, instance, message_z, xctx) |
If applicable, write debug from zero terminate string. More... | |
Functions | |
void | afw_debug_write (const afw_interface_implementation_rti_t *rti, const afw_utf8_z_t *source_z, const afw_utf8_t *message, afw_xctx_t *xctx) |
Write debug. More... | |
void | afw_debug_write_fz (const afw_interface_implementation_rti_t *rti, const afw_utf8_z_t *source_z, afw_xctx_t *xctx, const afw_utf8_z_t *format_z,...) |
Write debug using a printf style format. More... | |
void | afw_debug_write_vz (const afw_interface_implementation_rti_t *rti, const afw_utf8_z_t *source_z, const afw_utf8_z_t *format_z, va_list ap, afw_xctx_t *xctx) |
Write debug using a printf style format and va_list. More... | |
void | afw_debug_write_z (const afw_interface_implementation_rti_t *rti, const afw_utf8_z_t *source_z, const afw_utf8_z_t *message_z, afw_xctx_t *xctx) |
Write debug from zero terminate string. More... | |
These macros and functions assist writing debug message to the environment log. All debug message have associated runtime information (rti) that can be used for prefixing messages as well as filtering. The first parameter of macros AFW_DEBUG(), AFW_DEBUG_Z(), AFW_DEBUG_FZ(), and AFW_DEBUG_VZ() is a instance, which is used to locate the implementation rti. The AFW_DEBUG_WRITE*() macros and afw_debug_write*() functions have rti as the first parameter.
All debug message are written to the environment log. See afw_log.h for more information.
#define afw_debug | ( | flag_index, | |
instance, | |||
message, | |||
xctx | |||
) |
If applicable, write debug.
flag_index | of flag to check to determine if debug is applicable. |
instance | associated with debug message. |
message | to log. |
xctx | of caller. |
Definition at line 59 of file afw_debug.h.
#define afw_debug_fz | ( | flag_index, | |
instance, | |||
xctx, | |||
format_z, | |||
... | |||
) |
If applicable, write debug using a printf style format.
flag_index | of flag to check to determine if debug is applicable. |
instance | associated with debug message. |
xctx | of caller. |
format_z | for message to log. |
... | parameters for format. |
Definition at line 76 of file afw_debug.h.
#define AFW_DEBUG_STATIC_DEBUG_ID | ( | label, | |
debug_id | |||
) |
Define a static debug_id rti.
label | for the static debug_id rti. |
debug_id | The first parameter of afw_debug_write*() functions and AFW_DEBUG_WRITE*() macros is an rti. This macro defines a static rti that can be passed to these for non-interface debugging. |
Definition at line 47 of file afw_debug.h.
#define afw_debug_vz | ( | flag_index, | |
instance, | |||
format_z, | |||
ap, | |||
xctx | |||
) |
If applicable, write debug using a printf style format and va_list.
flag_index | of flag to check to determine if debug is applicable. |
instance | associated with debug message. |
format_z | for message to log. |
ap | va_list for format. |
xctx | of caller. |
Definition at line 99 of file afw_debug.h.
#define afw_debug_z | ( | flag_index, | |
instance, | |||
message_z, | |||
xctx | |||
) |
If applicable, write debug from zero terminate string.
flag_index | of flag to check to determine if debug is applicable. |
instance | associated with debug message. |
message_z | to log. |
xctx | of caller. |
Definition at line 115 of file afw_debug.h.
void afw_debug_write | ( | const afw_interface_implementation_rti_t * | rti, |
const afw_utf8_z_t * | source_z, | ||
const afw_utf8_t * | message, | ||
afw_xctx_t * | xctx | ||
) |
Write debug.
rti | associated with debug message. |
source_z | file:line. |
message | to log. |
xctx | of caller. |
Normally afw_debug() should be called instead.
Definition at line 21 of file afw_debug.c.
void afw_debug_write_fz | ( | const afw_interface_implementation_rti_t * | rti, |
const afw_utf8_z_t * | source_z, | ||
afw_xctx_t * | xctx, | ||
const afw_utf8_z_t * | format_z, | ||
... | |||
) |
Write debug using a printf style format.
rti | associated with debug message. |
source_z | file:line. |
xctx | of caller. |
format_z | for message to log. |
... | parameters for format. |
Normally afw_debug_fz() should be called instead.
Definition at line 46 of file afw_debug.c.
void afw_debug_write_vz | ( | const afw_interface_implementation_rti_t * | rti, |
const afw_utf8_z_t * | source_z, | ||
const afw_utf8_z_t * | format_z, | ||
va_list | ap, | ||
afw_xctx_t * | xctx | ||
) |
Write debug using a printf style format and va_list.
rti | associated with debug message. |
source_z | file:line. |
format_z | for message to log. |
ap | va_list for format. |
xctx | of caller. |
Normally afw_debug_vz() should be called instead.
Definition at line 66 of file afw_debug.c.
void afw_debug_write_z | ( | const afw_interface_implementation_rti_t * | rti, |
const afw_utf8_z_t * | source_z, | ||
const afw_utf8_z_t * | message_z, | ||
afw_xctx_t * | xctx | ||
) |
Write debug from zero terminate string.
rti | associated with debug message. |
source_z | file:line. |
message_z | to log. |
xctx | of caller. |
Normally afw_debug_z() should be called instead.
Definition at line 81 of file afw_debug.c.