From 6bf564204fe977dccf94ed58ddea7fd5eaf4a1fa Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Thu, 15 Sep 2011 15:26:40 -0300 Subject: Using Py_TYPE macro instead of direct access to ob_type to work with Python 2.x and 3.x. Enclosing PyCObject uses inside #ifdefs --- libshiboken/conversions.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'libshiboken/conversions.h') diff --git a/libshiboken/conversions.h b/libshiboken/conversions.h index ebe5c6c56..fa42622fa 100644 --- a/libshiboken/conversions.h +++ b/libshiboken/conversions.h @@ -38,10 +38,6 @@ #define PyObject_Check(X) true #include "autodecref.h" -// Note: if there wasn't for the old-style classes, only a PyNumber_Check would suffice. -#define SbkNumber_Check(X) \ - (PyNumber_Check(X) && (!PyInstance_Check(X) || PyObject_HasAttrString(X, "__trunc__"))) - namespace Shiboken { /** -- cgit v1.2.3