Fix incorrect line number reporting in errors/warnings after parsing macro invocations with parameters given over more than one line.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12214 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2010-09-10 23:44:27 +00:00
commit f82811dbcd
5 changed files with 50 additions and 0 deletions

View file

@ -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 *);