星期三, 8月 12, 2020

find caller

/* Jack 2020/08/12

*/

 #include <stdio.h>

#include <stdlib.h>

#define printf( format,arg...) \

        printf("call from %s\n", __func__);\

        printf( format, arg );

int main(){

    printf( "%s\n", "test" );

}



jack@i7-build-server:~$ ./a.out
call from main
test

沒有留言: