| 1 |
#ifndef MYTHING |
| 2 |
#error "Global argument not set" |
| 3 |
#endif |
| 4 |
|
| 5 |
#ifdef MYCPPTHING |
| 6 |
#error "Wrong global argument set" |
| 7 |
#endif |
| 8 |
|
| 9 |
#ifndef MYCANDCPPTHING |
| 10 |
#error "Global argument not set" |
| 11 |
#endif |
| 12 |
|
| 13 |
#if !defined(GLOBAL_HOST) && !defined(GLOBAL_BUILD) |
| 14 |
#error "Neither global_host nor global_build is set." |
| 15 |
#endif |
| 16 |
|
| 17 |
#if defined(GLOBAL_HOST) && defined(GLOBAL_BUILD) |
| 18 |
#error "Both global build and global host set." |
| 19 |
#endif |
| 20 |
|
| 21 |
#ifdef GLOBAL_BUILD |
| 22 |
#ifndef ARG_BUILD |
| 23 |
#error "Global is build but arg_build is not set." |
| 24 |
#endif |
| 25 |
|
| 26 |
#ifdef ARG_HOST |
| 27 |
#error "Global is build but arg host is set." |
| 28 |
#endif |
| 29 |
#endif |
| 30 |
|
| 31 |
#ifdef GLOBAL_HOST |
| 32 |
#ifndef ARG_HOST |
| 33 |
#error "Global is host but arg_host is not set." |
| 34 |
#endif |
| 35 |
|
| 36 |
#ifdef ARG_BUILD |
| 37 |
#error "Global is host but arg_build is set." |
| 38 |
#endif |
| 39 |
#endif |
| 40 |
|
| 41 |
int main(void) { |
| 42 |
return 0; |
| 43 |
} |