-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathmacros.c
More file actions
39 lines (30 loc) · 679 Bytes
/
Copy pathmacros.c
File metadata and controls
39 lines (30 loc) · 679 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include <stdio.h>
#define DEBUG_LEVEL 2
int main(void){
printf("Hello World.\n");
printf("Absolute Debugg Levels.\n");
#if DEBUG_LEVEL==2
printf("DEBUG LEVEL = %d \n", DEBUG_LEVEL);
#elif DEBUG_LEVEL==1
printf("DEBUG LEVEL = %d \n", DEBUG_LEVEL);
#else
printf("No Debugging.\n");
#endif
printf("Bye bye!.\n");
printf("Scaling Debugg Levels.\n");
#if DEBUG_LEVEL>=2
printf("S2DEBUG LEVEL = %d \n", DEBUG_LEVEL);
#endif
#if DEBUG_LEVEL>=1
printf("S1DEBUG LEVEL = %d \n", DEBUG_LEVEL);
#endif
#if DEBUG_LEVEL==0
printf("No Debugging.\n");
#endif
#ifdef myDEFINE
printf("My Define!!\n");
#else
printf("not present.\n");
#endif
return(0);
}