回答編集履歴

2

ちょっと間違えていたので修正

2019/07/07 15:34

投稿

mather
mather

スコア6753

test CHANGED
@@ -30,7 +30,7 @@
30
30
 
31
31
  int a = 3;
32
32
 
33
- do{if(n==){printf("%d",a);}else{}}while(0);
33
+ do{if(==){printf("%d",a);}else{}}while(0);
34
34
 
35
35
  return 0;
36
36
 

1

マクロ展開したものを追記

2019/07/07 15:34

投稿

mather
mather

スコア6753

test CHANGED
@@ -11,3 +11,29 @@
11
11
 
12
12
 
13
13
  `DEBUG` は「空文字列」ではなくゼロバイトの文字列でソースコード上置換されますよね。
14
+
15
+
16
+
17
+ ----
18
+
19
+
20
+
21
+ 全部マクロ展開するとこんな感じ。
22
+
23
+
24
+
25
+ ```c
26
+
27
+ #include<stdio.h>
28
+
29
+ int main() {
30
+
31
+ int a = 3;
32
+
33
+ do{if(n==){printf("%d",a);}else{}}while(0);
34
+
35
+ return 0;
36
+
37
+ }
38
+
39
+ ```