Skip to content

Instantly share code, notes, and snippets.

@VladRez
Created April 16, 2019 22:19
Show Gist options
  • Save VladRez/7c40976197938cd5cc0649c2d7236746 to your computer and use it in GitHub Desktop.
Save VladRez/7c40976197938cd5cc0649c2d7236746 to your computer and use it in GitHub Desktop.
Displays internal function name decoration/mangling
#include<iostream>
using namespace std;
extern "C" void examplefunction(double arg1);
int main(void) {
examplefunction(100);
}
void examplefunction(double arg1) {
printf("Function Name: %s\n", __FUNCTION__);
printf("Function Decorated Name %s\n", __FUNCDNAME__);
printf("Function signature %s\n", __FUNCSIG__);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment