macro_feature.test
1.06 KB
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
40
41
42
43
# include <stdio.h>
#define PG_locked 0
#elif
#else
#endif
#error
#ifdef
#ifndef
#if
#import
#include
#line
#pragma
#undef
#using
----------------------------------------------------
[
["macro", [
"# ", ["directive", "include"],
["string", "<stdio.h>"]
]],
["macro", ["#", ["directive", "define"], " PG_locked 0"]],
["macro", ["#", ["directive", "elif"]]],
["macro", ["#", ["directive", "else"]]],
["macro", ["#", ["directive", "endif"]]],
["macro", ["#", ["directive", "error"]]],
["macro", ["#", ["directive", "ifdef"]]],
["macro", ["#", ["directive", "ifndef"]]],
["macro", ["#", ["directive", "if"]]],
["macro", ["#", ["directive", "import"]]],
["macro", ["#", ["directive", "include"]]],
["macro", ["#", ["directive", "line"]]],
["macro", ["#", ["directive", "pragma"]]],
["macro", ["#", ["directive", "undef"]]],
["macro", ["#", ["directive", "using"]]]
]
----------------------------------------------------
Checks for macros, multi-line macros and paths inside include statements.