diff options
| author | 2024-04-12 09:13:42 +0200 | |
|---|---|---|
| committer | 2024-04-12 09:13:42 +0200 | |
| commit | f02fb99340edd86848794dd9b85088998458a70d (patch) | |
| tree | 5af8e8fd250557e18d3816f49d5dac522ae08c6e /test | |
| parent | d0a11e24e0639ba402be3dec522e0dfff9ba45fc (diff) | |
frontend: #ifdef
Diffstat (limited to 'test')
| -rw-r--r-- | test/pp.c | 4 | ||||
| -rw-r--r-- | test/pp.h | 8 |
2 files changed, 11 insertions, 1 deletions
@@ -1,8 +1,10 @@ #include "pp.h" +#include "pp.h" + int main(void) { hi(); - return Foo; + return Foo + Bar; } @@ -1,6 +1,14 @@ +#ifndef GUARD +#define GUARD + extern warnhere(); #define Foo 9 void hi() { extern int printf(); printf("hi from header\n"); } + +#elifndef Ww +#define Bar 7 + +#endif |