Fixed problem in Preprocessor_define() when called with string literals.

(This is what was causing the SWIG symbol to disappear).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@545 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-07-09 21:40:58 +00:00
commit c48aeeb69b

View file

@ -147,6 +147,7 @@ DOHHash *Preprocessor_define(DOHString_or_char *str, int swigmacro)
str = s;
} else {
str = NewString((char *) str);
Seek(str,0,SEEK_SET);
}
line = Getline(str);
file = Getfile(str);