#define __lib_python_python_h
#include <string>
+#include <lib/base/object.h>
+typedef struct _object PyObject;
+
+// useable for debugging python refcounting
+
+extern PyObject *New_TestObj();
+
+class TestObj
+{
+DECLARE_REF(TestObj);
+public:
+ TestObj();
+ ~TestObj();
+};
+TEMPLATE_TYPEDEF(ePtr<TestObj>, TestObjPtr);
+
+#ifndef SWIG
/* class ePyObject
{
void *m_object;
void *get() { return m_object; }
}; */
-typedef struct _object PyObject;
-
class ePython
{
public:
ePython();
~ePython();
int execute(const std::string &pythonfile, const std::string &funcname);
- static void call(PyObject *pFunc, PyObject *args);
+ static int call(PyObject *pFunc, PyObject *args);
static PyObject *resolve(const std::string &pythonfile, const std::string &funcname);
private:
};
+#endif // SWIG
#endif