Skip to content

Instantly share code, notes, and snippets.

@domiyanyue
Last active April 26, 2020 00:32
Show Gist options
  • Save domiyanyue/a5ca766ed85a5789eba8c3f7593229d4 to your computer and use it in GitHub Desktop.
Save domiyanyue/a5ca766ed85a5789eba8c3f7593229d4 to your computer and use it in GitHub Desktop.
preprocessing example
g++ -E example.cpp -o _preprocess.out
# 1 "example.cpp"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 1 "<command-line>" 2
# 1 "example.cpp"
# 1 "vars.h" 1
int a = 1;
int foo(){
return 2;
}
# 2 "example.cpp" 2
int main(){
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment