removed UnionBase.cpp dependency

develop
doomchild 2010-04-03 21:01:11 -05:00
parent afc051d032
commit 478974e399
1 changed files with 5 additions and 5 deletions

@ -23,7 +23,7 @@ distribution.
*/ */
#include "Python.h" #include "Python.h"
#include "UnionBase.cpp" //#include "UnionBase.cpp"
#include "DF_API.cpp" #include "DF_API.cpp"
#ifndef PyMODINIT_FUNC #ifndef PyMODINIT_FUNC
@ -39,17 +39,17 @@ PyMODINIT_FUNC initpydfhack(void)
{ {
PyObject* module; PyObject* module;
if(PyType_Ready(&UnionBase_type) < 0) // if(PyType_Ready(&UnionBase_type) < 0)
return; // return;
if(PyType_Ready(&DF_API_type) < 0) if(PyType_Ready(&DF_API_type) < 0)
return; return;
module = Py_InitModule3("pydfhack", module_methods, "pydfhack extension module"); module = Py_InitModule3("pydfhack", module_methods, "pydfhack extension module");
Py_INCREF(&UnionBase_type); //Py_INCREF(&UnionBase_type);
Py_INCREF(&DF_API_type); Py_INCREF(&DF_API_type);
PyModule_AddObject(module, "UnionBase", (PyObject*)&UnionBase_type); //PyModule_AddObject(module, "UnionBase", (PyObject*)&UnionBase_type);
PyModule_AddObject(module, "API", (PyObject*)&DF_API_type); PyModule_AddObject(module, "API", (PyObject*)&DF_API_type);
} }