milk  1.01
Modular Image processing Library toolKit
MACROS: Debugging

Macros

#define DEBUG_TRACEPOINT(...)
 register trace point More...
 
#define DEBUG_TRACEPOINTLOG(...)
 register and log trace point More...
 

Detailed Description

Macro Definition Documentation

◆ DEBUG_TRACEPOINT

#define DEBUG_TRACEPOINT (   ...)
Value:
do { \
sprintf(data.testpoint_file, "%s", __FILE__); \
sprintf(data.testpoint_func, "%s", __func__); \
data.testpoint_line = __LINE__; \
clock_gettime(CLOCK_REALTIME, &data.testpoint_time); \
sprintf(data.testpoint_msg, __VA_ARGS__); \
} while(0)

register trace point

◆ DEBUG_TRACEPOINTLOG

#define DEBUG_TRACEPOINTLOG (   ...)
Value:
do { \
sprintf(data.testpoint_file, "%s", __FILE__); \
sprintf(data.testpoint_func, "%s", __func__); \
data.testpoint_line = __LINE__; \
clock_gettime(CLOCK_REALTIME, &data.testpoint_time); \
sprintf(data.testpoint_msg, __VA_ARGS__); \
write_process_log(); \
} while(0)

register and log trace point