Slight change to type-handling.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@214 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9948d8f667
commit
6252cd1103
1 changed files with 10 additions and 0 deletions
|
|
@ -353,6 +353,16 @@ void PYTHON::initialize_cmodule(void)
|
|||
fprintf(f_init,"\t SWIG_globals = SWIG_newvarlink();\n");
|
||||
fprintf(f_init,"\t m = Py_InitModule(\"%s\", %sMethods);\n", module, module);
|
||||
fprintf(f_init,"\t d = PyModule_GetDict(m);\n");
|
||||
|
||||
String init;
|
||||
init << tab4 << "{\n"
|
||||
<< tab8 << "int i;\n"
|
||||
<< tab8 << "for (i = 0; _swig_types_initial[i]; i++) {\n"
|
||||
<< tab8 << tab4 << "_swig_types[i] = SWIG_TypeRegister(_swig_types_initial[i]);\n"
|
||||
<< tab8 << "}\n"
|
||||
<< tab4 << "}\n";
|
||||
fprintf(f_init,"%s", init.get());
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue