From f2324be42862b161e42f8fa31f30d08b1c76fbcf Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Mon, 24 Oct 2005 14:38:09 +0000 Subject: [PATCH] remove extra info printed for %define, but not #define, it makes very hard to find an error since swig reports it from where the macro was defined, not used git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7706 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Preprocessor/cpp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SWIG/Source/Preprocessor/cpp.c b/SWIG/Source/Preprocessor/cpp.c index 58a161c7d..09c4d88a2 100644 --- a/SWIG/Source/Preprocessor/cpp.c +++ b/SWIG/Source/Preprocessor/cpp.c @@ -751,8 +751,11 @@ expand_macro(String_or_char *name, List *args) g = Preprocessor_parse(e); /* Drop the macro in place, but with a marker around it */ +#if 0 Printf(f,"/*@%s,%d,%s@*/%s/*@@*/", Getfile(macro), Getline(macro), name, g); - +#else + Printf(f,"%s", g); +#endif /* Printf(f," }\n"); */ Delete(g); Delete(e);