All languages now define a macro in the generated C/C++ wrapper file indicating which language is being wrapped, eg #define SWIGJAVA
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11018 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d2f69e6a34
commit
5ec2d8c166
20 changed files with 72 additions and 9 deletions
|
|
@ -816,9 +816,14 @@ int R::top(Node *n) {
|
|||
Swig_register_filebyname("header", s_header);
|
||||
Swig_register_filebyname("wrapper", f_wrapper);
|
||||
Swig_register_filebyname("s", sfile);
|
||||
|
||||
Swig_register_filebyname("sclasses", s_classes);
|
||||
|
||||
Swig_banner(f_runtime);
|
||||
|
||||
Printf(f_runtime, "#define SWIGR\n");
|
||||
Printf(f_runtime, "\n");
|
||||
|
||||
|
||||
Swig_banner_target_lang(s_init, "#");
|
||||
outputCommandLineArguments(s_init);
|
||||
|
||||
|
|
@ -898,9 +903,6 @@ int R::DumpCode(Node *n) {
|
|||
SWIG_exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
Swig_banner(runtime);
|
||||
|
||||
|
||||
Printf(runtime, "/* Runtime */\n");
|
||||
Printf(runtime, "%s\n", f_runtime);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue