From Gruff Finch, 2 Weeks ago, written in Plain Text.
This paste will buy the farm in 1 Week.
Embed
  1. #define TOKENS \
  2.     X(TOK_BOOL, "bool") \
  3.     X(TOK_INT, "int")
  4.  
  5. #define X(a, b) a,
  6. enum tokens {
  7.     TOKENS
  8. };
  9. #undef X
  10.  
  11. #define X(a, b) b,
  12. const char *tokenstostr[] = {
  13.     TOKENS
  14. };
  15. #undef X
captcha