summaryrefslogtreecommitdiff
path: root/Source/Preprocessor
diff options
context:
space:
mode:
authorDave Beazley <dave-swig@dabeaz.com>2007-01-12 19:01:40 +0000
committerDave Beazley <dave-swig@dabeaz.com>2007-01-12 19:01:40 +0000
commitb92d8e5cffc0b150512504fafa861c60dddb51f7 (patch)
tree443e75ab7fd847fd7a4c5226c62fc546453fe695 /Source/Preprocessor
parent7378cdd2f57de71d88e634bd26af28b092e8ad32 (diff)
downloadswig-b92d8e5cffc0b150512504fafa861c60dddb51f7.tar.gz
Major overhaul of C/C++ scanner API. Unified tokenizing code so that tokens are scanned by a common code base
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9639 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Source/Preprocessor')
-rw-r--r--Source/Preprocessor/cpp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Preprocessor/cpp.c b/Source/Preprocessor/cpp.c
index e0c36a6f9..816fcd406 100644
--- a/Source/Preprocessor/cpp.c
+++ b/Source/Preprocessor/cpp.c
@@ -909,7 +909,10 @@ static String *expand_macro(String *name, List *args) {
#else
/* Use simplified around markers to properly count lines in cscanner.c */
if (strchr(Char(g), '\n')) {
+ Printf(f, "/*@SWIG:%s,%d,%s@*/%s/*@SWIG@*/", Getfile(macro), Getline(macro), name, g);
+#if 0
Printf(f, "/*@SWIG:%s@*/%s/*@SWIG@*/", name, g);
+#endif
} else {
Append(f, g);
}