This repository has been archived on 2023-10-26. You can view files and clone it, but cannot push or open issues or pull requests.
VSMechatronics/C20/ConditionalDirective/conditional_directive_example.c

15 lines
222 B
C

#include <stdio.h>
#include <conio.h>
#define DEBUG_ON 0
int main(void)
{
#if DEBUG_ON == 1
printf("Debug mode - about to do something\n");
#else
printf("Running in standard mode");
#endif
return 0;
}