74 #define ASSERT_CONCAT_(a, b) a##b 75 #define ASSERT_CONCAT(a, b) ASSERT_CONCAT_(a, b) 76 #define BUILD_ASSERT(e) \ 77 enum { ASSERT_CONCAT(assert_line_, __LINE__) = (1U/(e)) } 98 #define VX_PRINT(zone, message, ...) do { tivx_print_global(((vx_enum)zone), "[%s:%u] " message, __FUNCTION__, __LINE__, ## __VA_ARGS__); } while (1 == 0) 104 #define VX_PRINT_GRAPH(zone, graph, message, ...) do { tivx_print_object(((vx_enum)zone), tivxGetGraphDebugZonemask(graph), "[ %s ] " message, tivxGetGraphName(graph), ## __VA_ARGS__); } while (1 == 0) 110 #define VX_PRINT_NODE(zone, node, message, ...) do { tivx_print_object(((vx_enum)zone), tivxGetNodeDebugZonemask(node), "[ %s ] " message, tivxGetNodeName(node), ## __VA_ARGS__); } while (1 == 0)
void tivx_print_object(vx_enum zone, vx_uint32 debug_zonemask, const char *format,...)
Internal printing function for a framework object with a set debug zone bitmask.
tivx_debug_zone_e
These are the bit flags for debugging.
vx_status tivxSetNodeDebugZone(vx_node node, vx_uint32 debug_zone, vx_bool enable)
Sets or clears a given debug zone for a node.
vx_char * tivx_find_zone_name(vx_enum zone)
Returns the name of an enumerated debug zone.
void tivx_set_debug_zone(vx_enum zone)
Sets a zone bit in the debug mask.
vx_uint32 tivxGetGraphDebugZonemask(vx_graph graph)
Returns the debug zonemask value of a graph.
const char * tivxGetGraphName(vx_graph graph)
Returns the name of a graph object.
vx_status tivxSetGraphDebugZone(vx_graph graph, vx_uint32 debug_zone, vx_bool enable)
Sets or clears a given debug zone for a graph.
void tivx_print_global(vx_enum zone, const char *format,...)
Internal printing function for the global debug zone bitmask.
void tivx_clr_debug_zone(vx_enum zone)
Clears the zone bit in the mask.
struct _vx_graph * vx_graph
struct _vx_node * vx_node
vx_bool tivx_is_zone_enabled(vx_enum zone)
Returns true or false if the zone bit is set or cleared.
const char * tivxGetNodeName(vx_node node)
Returns the name of a node object.
vx_uint32 tivxGetNodeDebugZonemask(vx_node node)
Returns the debug zonemask value of a node.