terps/tads/tads3/test/data/macro_if.t
raw| 1 | //#define IfnG(glb, args...) \ |
| 2 | if (args#ifempty#!#glb##Global.prop##glb args#ifnempty# != args#) |
| 3 | |
| 4 | #define IfnG(glb, args...) \ |
| 5 | if (IfnG1(args)glb##Global.prop##glb IfnG2(args)) |
| 6 | #define IfnG1(args...) args#ifempty#!# |
| 7 | #define IfnG2(args...) args#ifnempty# != args# |
| 8 | |
| 9 | |
| 10 | //#define IfnG(glb, args...) \ |
| 11 | // if (args#ifempty#!#IfnGVar(glb)args#ifnempty# != args#) |
| 12 | |
| 13 | //#define IfnGVar(glb) \ |
| 14 | // glb##Global.prop##glb |
| 15 | |
| 16 | |
| 17 | IfnG(Debug); |
| 18 | |
| 19 | IfnG(Debug, a, b); |
| 20 |