summaryrefslogtreecommitdiff
path: root/Examples/test-suite/errors/pp_macro_expansion_multiline.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/errors/pp_macro_expansion_multiline.i')
-rw-r--r--Examples/test-suite/errors/pp_macro_expansion_multiline.i32
1 files changed, 32 insertions, 0 deletions
diff --git a/Examples/test-suite/errors/pp_macro_expansion_multiline.i b/Examples/test-suite/errors/pp_macro_expansion_multiline.i
new file mode 100644
index 000000000..b0777de60
--- /dev/null
+++ b/Examples/test-suite/errors/pp_macro_expansion_multiline.i
@@ -0,0 +1,32 @@
+%module xxx
+// Testing macros split over multiple lines - ensure the warning message for the ignored functions contain the correct line numbering
+
+#define MYMACRO(NAME, A, B, C) void NAME(int A, int B, int C);
+
+MYMACRO(funk, x,
+y,
+
+z
+)
+
+void foo(int *);
+void foo(const int *);
+
+%define MYSWIGMACRO(A, B, C)
+MYMACRO(funk1,
+ AA,
+ BB,
+ CC)
+MYMACRO(funk2,
+ AA,
+ BB,
+ CC)
+%enddef
+
+MYSWIGMACRO(xx,
+ yy,
+ zz)
+
+void bar(int *);
+void bar(const int *);
+