Guest User

Untitled

a guest
May 26th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.69 KB | None | 0 0
  1. #define thing1 0
  2. #define thing2 1
  3. #define thing3 2
  4.  
  5. #ifdef thing
  6.         #if thing == thing2
  7.                 #undef thing
  8.                 #define thing thing3
  9.         #endif
  10.         #if thing == thing1
  11.                 #undef thing
  12.                 #define thing thing2
  13.         #endif
  14. #elif  !thing
  15.         #define thing 0
  16. #endif
  17.  
  18. printf("\n thing: %d\n", thing);
  19.  
  20. #ifdef thing
  21.         #if thing == thing2
  22.                 #undef thing
  23.                 #define thing thing3
  24.         #endif
  25.         #if thing == thing1
  26.                 #undef thing
  27.                 #define thing thing2
  28.         #endif
  29. #elif  !thing
  30.         #define thing 0
  31. #endif
  32.  
  33. printf("\n thing: %d\n", thing);
Add Comment
Please, Sign In to add comment