Untitled

From anonymous, 1 Year ago, written in Plain Text, viewed 55 times.
URL https://paste.codexterous.com/view/b82f6ee4 Embed
Download Paste or View Raw
  1. $ cat test.c && clang test.c -DMYDEFINE=1 -DMYDEFINE=0 && ./a.out    
  2. #include <stdio.h>
  3. int main(){
  4.   printf("-DMYDEFINE: %d\n", MYDEFINE);
  5.   return 0;
  6. }
  7.  
  8. In file included from <built-in>:326:
  9. <command line>:2:9: warning: 'MYDEFINE' macro redefined [-Wmacro-redefined]
  10. #define MYDEFINE 0
  11.         ^
  12. <command line>:1:9: note: previous definition is here
  13. #define MYDEFINE 1
  14.         ^
  15. 1 warning generated.
  16. -DMYDEFINE: 0
  17.  

Reply to "Untitled"

Here you can reply to the paste above