Skip to content

Instantly share code, notes, and snippets.

@gchavez2
Last active January 4, 2018 19:14
Show Gist options
  • Save gchavez2/1f7f4cdc898cb2657bfe8688f9e8e4d8 to your computer and use it in GitHub Desktop.
Save gchavez2/1f7f4cdc898cb2657bfe8688f9e8e4d8 to your computer and use it in GitHub Desktop.
See output of preprocessing
g++ -E helloworld.cpp > helloworld.txt
#include <iostream>
using namespace std;
#include "preprocessorFun.h"
int main() {
cout << "Hello from main()\n";
OutsideMethod();
return 0;
}
void OutsideMethod(){
cout << "Hello from OutsideMethod()\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment