From 478974e399a7c5359c828f3df0bbd882f2d7f9a9 Mon Sep 17 00:00:00 2001 From: doomchild Date: Sat, 3 Apr 2010 21:01:11 -0500 Subject: [PATCH] removed UnionBase.cpp dependency --- library/pydfhack/pydfhack.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/library/pydfhack/pydfhack.cpp b/library/pydfhack/pydfhack.cpp index 23aa3a730..378d885bd 100644 --- a/library/pydfhack/pydfhack.cpp +++ b/library/pydfhack/pydfhack.cpp @@ -23,7 +23,7 @@ distribution. */ #include "Python.h" -#include "UnionBase.cpp" +//#include "UnionBase.cpp" #include "DF_API.cpp" #ifndef PyMODINIT_FUNC @@ -39,17 +39,17 @@ PyMODINIT_FUNC initpydfhack(void) { PyObject* module; - if(PyType_Ready(&UnionBase_type) < 0) - return; + // if(PyType_Ready(&UnionBase_type) < 0) + // return; if(PyType_Ready(&DF_API_type) < 0) return; module = Py_InitModule3("pydfhack", module_methods, "pydfhack extension module"); - Py_INCREF(&UnionBase_type); + //Py_INCREF(&UnionBase_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); } \ No newline at end of file