diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-09-15 15:26:40 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:17:14 -0300 |
commit | 6bf564204fe977dccf94ed58ddea7fd5eaf4a1fa (patch) | |
tree | 8b58405cdf2eb1c2dcd295540037c0896628da39 /libshiboken/conversions.h | |
parent | 24206196a34b4faeb4b720efcc84747f35accf94 (diff) |
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
Diffstat (limited to 'libshiboken/conversions.h')
-rw-r--r-- | libshiboken/conversions.h | 4 |
1 files changed, 0 insertions, 4 deletions
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 { /** |