Skip to content

Instantly share code, notes, and snippets.

@simonis
Created December 23, 2019 15:02
Show Gist options
  • Save simonis/2a78c89076803cae4d4f3d4515c85d70 to your computer and use it in GitHub Desktop.
Save simonis/2a78c89076803cae4d4f3d4515c85d70 to your computer and use it in GitHub Desktop.
void foo() {}
struct A {
A() {
foo();
}
};
struct B {
B() {
A a;
}
};
void bar() {
foo();
}
#define CALL_FOO foo()
void foobar() {
CALL_FOO;
}
int main(int argc, char **argv) {
B b;
bar();
bar();
foobar();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment