SyntaxFix
Write A Post
Hire A Developer
Questions
#include <stdio.h> #define QUOTEME(x) #x #ifndef TEST_FUN # define TEST_FUN func_name # define TEST_FUN_NAME QUOTEME(TEST_FUN) #endif int main(void) { puts(TEST_FUN_NAME); return 0; }
Reference: Wikipedia's C preprocessor page