summaryrefslogtreecommitdiff
path: root/SWIG/Examples/guile/test-suite/macro-2.i
diff options
context:
space:
mode:
Diffstat (limited to 'SWIG/Examples/guile/test-suite/macro-2.i')
-rw-r--r--SWIG/Examples/guile/test-suite/macro-2.i17
1 files changed, 17 insertions, 0 deletions
diff --git a/SWIG/Examples/guile/test-suite/macro-2.i b/SWIG/Examples/guile/test-suite/macro-2.i
new file mode 100644
index 000000000..cfd5fa722
--- /dev/null
+++ b/SWIG/Examples/guile/test-suite/macro-2.i
@@ -0,0 +1,17 @@
+/* This interface file tests whether SWIG's extended C
+ preprocessor is working right.
+
+ In this example, SWIG 1.3a5 reports missing macro arguments, which
+ is bogus.
+*/
+
+%define FOO(C_TYPE, GETLENGTH)
+ /* nothing */
+%enddef
+
+%define BAR(XYZZY)
+ FOO(XYZZY, 1)
+%enddef
+
+BAR(int)
+