daily pastebin goal
8%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #define FUNCTION_HEADER(a) a { const char* __func__ = #a;
  2. #define FUNCTION_FOOTER() }
  3.    
  4. #include <windows.h>
  5.  
  6. #define FUNCTION_HEADER(a) a { const char* __func__ = #a;
  7. #define FUNCTION_FOOTER() }
  8.  
  9. FUNCTION_HEADER( int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) )
  10.     MessageBoxA(0, __func__, __func__, MB_OK);
  11.     return 0;
  12. FUNCTION_FOOTER()
  13.    
  14. __DATE__
  15. __FILE__
  16. __LINE__
  17. __STDC__
  18. __STDC_HOSTED__
  19. __STDC_MB_MIGHT_NEQ_WC__
  20. __STDC_VERSION__
  21. __TIME__
  22.    
  23. __STDC_IEC_559__
  24. __STDC_IEC_559_COMPLEX__
  25. __STDC_ISO_10646__
  26.    
  27. static const char __func__[] = "function-name";
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top