From 9d4d860af60dc74a63fc8afefb6d8e5c84a9daae Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Sun, 12 Feb 2006 19:48:32 +0000 Subject: [PATCH] fix line counting for inner macro expansions (one macro inside another one) git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8807 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/CParse/cscanner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/CParse/cscanner.c b/Source/CParse/cscanner.c index e3ebe0212..1a39b5a40 100644 --- a/Source/CParse/cscanner.c +++ b/Source/CParse/cscanner.c @@ -75,10 +75,10 @@ static void scanner_locator(String *loc) { if (Equal(loc,"@SWIG@")) { /* End locator. */ - expanding_macro = 0; + if (expanding_macro) --expanding_macro; } else { /* Begin locator. */ - expanding_macro = 1; + ++expanding_macro; } }