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
|
|
@ -369,6 +369,8 @@ public:
|
|||
|
||||
Swig_banner(f_runtime); // Print the SWIG banner message
|
||||
|
||||
Printf(f_runtime, "#define SWIGJAVA\n");
|
||||
|
||||
if (directorsEnabled()) {
|
||||
Printf(f_runtime, "#define SWIG_DIRECTORS\n");
|
||||
|
||||
|
|
@ -385,6 +387,8 @@ public:
|
|||
Printf(f_directors, "#include \"%s\"\n\n", Swig_file_filename(outfile_h));
|
||||
}
|
||||
|
||||
Printf(f_runtime, "\n");
|
||||
|
||||
String *wrapper_name = NewString("");
|
||||
|
||||
if (Len(package)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue