Skip to content

Instantly share code, notes, and snippets.

@mandyedi
Created January 12, 2015 22:38
Show Gist options
  • Save mandyedi/48f1a720e3d0e5e25ef8 to your computer and use it in GitHub Desktop.
Save mandyedi/48f1a720e3d0e5e25ef8 to your computer and use it in GitHub Desktop.
c++: macro: msvc: print function name, declaration etc.
void testFunction( int &x )
{
std::cout << __FUNCTION__ << std::endl;
std::cout << __FUNCDNAME__ << std::endl;
std::cout << __FUNCSIG__ << std::endl;
x += 3;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment