Skip to content

Instantly share code, notes, and snippets.

@GnsP
Last active August 29, 2015 14:15
Show Gist options
  • Save GnsP/41114784385319022a51 to your computer and use it in GitHub Desktop.
Save GnsP/41114784385319022a51 to your computer and use it in GitHub Desktop.
// This is a simple C program to experiment with the GCC Compilation Steps
// It uses the #define directives below only to provide a good visualization
// of the preprocessing step.
// author : Ganesh Prasad (gnsp)
#define ONE 1
#define TWO 2
#define EXIT_OK 0
#define EXIT_FAILURE 1
int main(){
if( ONE + TWO == 3 ){
return EXIT_OK;
}
else return EXIT_FAILURE; // This line will never get executed, these
// comments will never cross preprocessing too.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment