Add support for the -external-runtime argument and update all language modules to use it
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6993 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
8d7eaea667
commit
67b49825cb
18 changed files with 233 additions and 46 deletions
|
|
@ -93,6 +93,9 @@ protected:
|
|||
|
||||
String *chickenNameMapping(String *, String_or_char *);
|
||||
String *chickenPrimitiveName(String *);
|
||||
|
||||
String *runtimeCode();
|
||||
String *defaultExternalRuntimeFilename();
|
||||
};
|
||||
|
||||
/* -----------------------------------------------------------------------
|
||||
|
|
@ -1329,3 +1332,15 @@ CHICKEN::validIdentifier(String *s)
|
|||
}
|
||||
return n;
|
||||
}
|
||||
|
||||
String *CHICKEN::runtimeCode() {
|
||||
String *s = Swig_include_sys("chickenrun.swg");
|
||||
if (!s) {
|
||||
Printf(stderr, "*** Unable to open 'chickenrun.swg'\n");
|
||||
s = NewString("");
|
||||
}
|
||||
}
|
||||
|
||||
String *CHICKEN::defaultExternalRuntimeFilename() {
|
||||
return NewString("swigchickenrun.h");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue