Added WRAPEXTERN symbol.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@70 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
76d5855c3f
commit
a2aae21aff
1 changed files with 6 additions and 0 deletions
|
|
@ -1114,7 +1114,13 @@ SWIG_cpp_parse(DOH *s)
|
||||||
add_chunk(ns,chunk,allow);
|
add_chunk(ns,chunk,allow);
|
||||||
copy_location(s,chunk);
|
copy_location(s,chunk);
|
||||||
Printf(ns,"%sfile \"%s\" {\n", decl, SWIG_last_file());
|
Printf(ns,"%sfile \"%s\" {\n", decl, SWIG_last_file());
|
||||||
|
if ((Cmp(decl,"%import") == 0) || (Cmp(decl,"%extern") == 0)) {
|
||||||
|
SWIG_cpp_define("WRAPEXTERN 1", 0);
|
||||||
|
}
|
||||||
s2 = SWIG_cpp_parse(s1);
|
s2 = SWIG_cpp_parse(s1);
|
||||||
|
if ((Cmp(decl,"%import") == 0) || (Cmp(decl,"%extern") == 0)) {
|
||||||
|
SWIG_cpp_undef("WRAPEXTERN");
|
||||||
|
}
|
||||||
addline(ns,s2,allow);
|
addline(ns,s2,allow);
|
||||||
Printf(ns,"\n}\n");
|
Printf(ns,"\n}\n");
|
||||||
Delete(s2);
|
Delete(s2);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue