Fixed expressions

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@66 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-01-12 18:22:21 +00:00
commit 63b0bee56a

View file

@ -996,12 +996,11 @@ SWIG_cpp_parse(DOH *s)
if (allow) {
start_level = level;
sval = swig_cpp_replace(value);
sval = Copy(value);
Seek(sval,0,SEEK_SET);
val = SWIG_expr(sval,&e);
if (e) {
Seek(value,0,SEEK_SET);
/* cpp_error(Getfile(value),Getline(value),"Could not evaluate '%s'\n", value); */
cpp_error(Getfile(value),Getline(value),"Could not evaluate '%s'\n", value);
allow = 0;
} else {
if (val == 0)