fix -external-runtime
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8654 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
36b16faeab
commit
0d6baa85ef
7 changed files with 226 additions and 165 deletions
|
|
@ -1273,11 +1273,22 @@ public:
|
|||
}
|
||||
|
||||
String *runtimeCode() {
|
||||
String *s = Swig_include_sys("swigtcl8.swg");
|
||||
if (!s) {
|
||||
Printf(stderr, "*** Unable to open 'swigtcl8.swg'\n");
|
||||
s = NewString("");
|
||||
String *s = NewString("");
|
||||
String *sapi = Swig_include_sys("tclapi.swg");
|
||||
if (!sapi) {
|
||||
Printf(stderr, "*** Unable to open 'tclapi.swg'\n");
|
||||
} else {
|
||||
Append(s, sapi);
|
||||
Delete(sapi);
|
||||
}
|
||||
String *srun = Swig_include_sys("tclrun.swg");
|
||||
if (!srun) {
|
||||
Printf(stderr, "*** Unable to open 'tclrun.swg'\n");
|
||||
} else {
|
||||
Append(s, srun);
|
||||
Delete(srun);
|
||||
}
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue