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/conditional_directive_example.c
2022-04-08 16:12:38 +01:00

15 lines
223 B
C

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