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:
parent
952d137197
commit
c48aeeb69b
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue