#include /** writes values with current routine name and line info to standard output. example: (debug-log "%d" 1) otherwise like printf */ #define debug_log(format, ...) fprintf(stdout, "%s:%d " format "\n", __func__, __LINE__, __VA_ARGS__) /** display current function name and given number. example call: (debug-trace 1) */ #define debug_trace(n) fprintf(stdout, "%s %d\n", __func__, n)