Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FUNCTION_HEADER(a) a { const char* __func__ = #a;
- #define FUNCTION_FOOTER() }
- #include <windows.h>
- #define FUNCTION_HEADER(a) a { const char* __func__ = #a;
- #define FUNCTION_FOOTER() }
- FUNCTION_HEADER( int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) )
- MessageBoxA(0, __func__, __func__, MB_OK);
- return 0;
- FUNCTION_FOOTER()
- __DATE__
- __FILE__
- __LINE__
- __STDC__
- __STDC_HOSTED__
- __STDC_MB_MIGHT_NEQ_WC__
- __STDC_VERSION__
- __TIME__
- __STDC_IEC_559__
- __STDC_IEC_559_COMPLEX__
- __STDC_ISO_10646__
- static const char __func__[] = "function-name";
Add Comment
Please, Sign In to add comment