Cleanup SWIG_VERSION definition
Add Swig_obligatory_macros which must be called by each target language to define SWIG_VERSION correctly in the generated code, as well as the language specific macro SWIGXXX where XXX is the target language name. Drop the #ifdef SWIGXXX that was previously generated - I can't see the point of this and if users are defining this macro somehow, then users will need to change this Closes #1050
This commit is contained in:
parent
e123c2afe8
commit
46f7501d94
31 changed files with 68 additions and 76 deletions
|
|
@ -1615,7 +1615,7 @@ int JSCEmitter::initialize(Node *n) {
|
|||
|
||||
Swig_banner(f_wrap_cpp);
|
||||
|
||||
Printf(f_runtime, "#ifndef SWIGJAVASCRIPT\n#define SWIGJAVASCRIPT\n#endif\n\n");
|
||||
Swig_obligatory_macros(f_runtime, "JAVASCRIPT");
|
||||
|
||||
return SWIG_OK;
|
||||
}
|
||||
|
|
@ -1947,7 +1947,7 @@ int V8Emitter::initialize(Node *n) {
|
|||
|
||||
Swig_banner(f_wrap_cpp);
|
||||
|
||||
Printf(f_runtime, "#ifndef SWIGJAVASCRIPT\n#define SWIGJAVASCRIPT\n#endif\n\n");
|
||||
Swig_obligatory_macros(f_runtime, "JAVASCRIPT");
|
||||
|
||||
return SWIG_OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue