| 1 | // vtest vflags: -os cross |
| 2 | module main |
| 3 | |
| 4 | $if windows { |
| 5 | $if user_d1 ? { |
| 6 | #include "w1.h" |
| 7 | #define user_d1 |
| 8 | } $else $if user_d2 ? { |
| 9 | #include "w2.h" |
| 10 | #define user_d2 |
| 11 | #preinclude "pre1.h" |
| 12 | } $else { |
| 13 | #include "w3.h" |
| 14 | #define user_not_d1_d2 |
| 15 | #include "macos1.m" |
| 16 | #postinclude "post1.h" |
| 17 | } |
| 18 | #define user_all_windows |
| 19 | #include "windows.h" |
| 20 | } $else $if linux { |
| 21 | $if user_d3 ? { |
| 22 | #include "l1.h" |
| 23 | #include "macos2.m" |
| 24 | #define user_d3 |
| 25 | #preinclude "pre2.h" |
| 26 | } $else $if user_d4 ? { |
| 27 | #include "l2.h" |
| 28 | #define user_d4 |
| 29 | #postinclude "post2.h" |
| 30 | } |
| 31 | #define user_all_linux |
| 32 | #include "stdio.h" |
| 33 | } $else { |
| 34 | #define user_all_other |
| 35 | #include "other.h" |
| 36 | #postinclude "post3.h" |
| 37 | } |
| 38 | |
| 39 | fn main() { |
| 40 | } |
| 41 |