Skip to main content
1 of 2
per1234
  • 4.3k
  • 2
  • 24
  • 44

The code is working properly. You have mixed up your error messages. The code should be:

#if defined(TEST)
  #error "DEFINED"
#else
  #error "NOT DEFINED"
#endif
per1234
  • 4.3k
  • 2
  • 24
  • 44