aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/pp.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/pp.h')
-rw-r--r--test/pp.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/pp.h b/test/pp.h
index e914800..5ac7aac 100644
--- a/test/pp.h
+++ b/test/pp.h
@@ -1,18 +1,21 @@
#ifndef GUARD
#define GUARD
+extern int printf(const char *, ...);
extern warnhere();
#define Foo 9
void hi(int x) {
- extern int printf(const char *, ...);
printf("hi from header ;%d\n", x);
}
#if 1
#endif
#elifndef Ww
#define Bar 7
-#define SQR_(x) (x)*(x)
-#define SQR(y) SQR_(y)
+#define SQR_(x) ((x)*(x))
+#define SQR(y) SQR_(1+(y)-1)
#define ADD(a,b) (a)+(b)
+#define STR(h) #h
#endif
+
+extern int printf(const char *, ...);