Merge branch 'fix-crash-2101'
* fix-crash-2101: Added extern "C" block that was removed in previous commit. Fixed crashes when using embedded Python interpreters.
This commit is contained in:
commit
be51cb6a6e
3 changed files with 233 additions and 217 deletions
|
|
@ -3424,7 +3424,6 @@ public:
|
|||
Printf(f_init, "#endif\n");
|
||||
Printf(f_init, "\t }\n");
|
||||
Printf(f_init, "\t PyDict_SetItemString(md, \"%s\", globals);\n", global_name);
|
||||
Printf(f_init, "\t Py_DECREF(globals);\n");
|
||||
if (builtin)
|
||||
Printf(f_init, "\t SwigPyBuiltin_AddPublicSymbol(public_interface, \"%s\");\n", global_name);
|
||||
have_globals = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue