cppreference.com > C/C++ Pre-processor Commands > #error
#error
Syntax:
  #error message

The #error command simply causes the compiler to stop when it is encountered. When an #error is encountered, the compiler spits out the line number and whatever message is. This command is mostly used for debugging.