How do I generate an error or warning in the C preprocessor? February 15, 2023 by Tarik Place anywhere: #ifndef DEBUG #error "Only Debug builds are supported" #endif For reference: Diagnostics