C debug 技巧——打印函数调用者 C debug 技巧 第一篇 打印函数调用者 C debug 技巧 第一篇 打印函数调用者 如下所示,通过宏转变可以清晰方便的在hello_world_print_func中打印函数的调用者 #include <stdio.h> #define DEBUG_FUNC_CALLER const char *func, const char* line #define DEBUG_FUNC_NAME(x) x ## _pos static void DEBUG_FUNC_NAME(hello_world_print_func)