From f02fb99340edd86848794dd9b85088998458a70d Mon Sep 17 00:00:00 2001 From: lemon Date: Fri, 12 Apr 2024 09:13:42 +0200 Subject: frontend: #ifdef --- test/pp.c | 4 +++- test/pp.h | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/pp.c b/test/pp.c index 0c199dc..ee4b98a 100644 --- a/test/pp.c +++ b/test/pp.c @@ -1,8 +1,10 @@ #include "pp.h" +#include "pp.h" + int main(void) { hi(); - return Foo; + return Foo + Bar; } diff --git a/test/pp.h b/test/pp.h index 69da492..80042fd 100644 --- a/test/pp.h +++ b/test/pp.h @@ -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 -- cgit v1.2.3