diff options
| author | 2025-11-16 12:11:18 +0100 | |
|---|---|---|
| committer | 2025-11-16 12:11:18 +0100 | |
| commit | 111e71e1511b2abff9176bd6c714c8da796f770e (patch) | |
| tree | 352b723c9144c844037447bd865a8366378df7a5 /test/07-pp.h | |
| parent | b0c0f2d2d885c5901de08ed08dba9fff079bf6e3 (diff) | |
basic automated testing
Diffstat (limited to 'test/07-pp.h')
| -rw-r--r-- | test/07-pp.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/07-pp.h b/test/07-pp.h new file mode 100644 index 0000000..63de6f5 --- /dev/null +++ b/test/07-pp.h @@ -0,0 +1,24 @@ +#ifndef GUARD +#define GUARD + +extern int printf(const char *, ...); +extern warnhere(); +#define Foo 9 +void hi(int x) { + printf("hi from header ;%d\n", x); +} +#if 1 +#endif +#elifndef Ww +#define Bar 7 +#define SQR_(x) ((x)*(x)) +#define SQR(y) SQR_(1+(y)-1) +#define ADD(a,b) (a)+(b) +#define STR(h) #h + +#define xstr(s1) str(s1) +#define str(...) #__VA_ARGS__ + +#endif + +extern int printf(const char *, ...); |