How to get function name and function signature using predefined macros in windows with C

1 Answer

0 votes
#include <stdio.h>

void aFunction() {
    printf("Function name: %s\n", __FUNCTION__);
    printf("Decorated function name: %s\n", __FUNCDNAME__);
    printf("Function signature: %s\n", __FUNCSIG__);
}

int main() {
    aFunction();
}





/*
run:

Function name: aFunction
Decorated function name: aFunction
Function signature: void __cdecl aFunction()

*/

 



answered Apr 21, 2022 by avibootz

Related questions

1 answer 106 views
1 answer 106 views
1 answer 177 views
1 answer 107 views
1 answer 170 views
...