parent
f75d394683
commit
85a263a670
3 changed files with 28 additions and 0 deletions
@ -0,0 +1,6 @@ |
||||
project('d dedup', 'c') |
||||
|
||||
add_project_arguments('-D', 'FOO', '-D', 'BAR', language : 'c') |
||||
|
||||
executable('prog', 'prog.c') |
||||
|
@ -0,0 +1,14 @@ |
||||
#include<stdio.h> |
||||
|
||||
#ifndef FOO |
||||
#error FOO is not defined. |
||||
#endif |
||||
|
||||
#ifndef BAR |
||||
#error BAR is not defined. |
||||
#endif |
||||
|
||||
int main(int argc, char **argv) { |
||||
printf("All is well.\n"); |
||||
return 0; |
||||
} |
Loading…
Reference in new issue