diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-11-10 20:05:13 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:08:58 -0300 |
commit | 4564787f4785ba6b2ace7fe4afa70b30246adb6a (patch) | |
tree | 2d0c26db78227526695a755b09c7de91720cb861 /libshiboken/basewrapper.cpp | |
parent | c3e3500c309be004434293895775e5579656d72c (diff) |
Added Shiboken::Wrapper::hasParentInfo function.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Lauro Moura <lauro.neto@openbossa.org>
Diffstat (limited to 'libshiboken/basewrapper.cpp')
-rw-r--r-- | libshiboken/basewrapper.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libshiboken/basewrapper.cpp b/libshiboken/basewrapper.cpp index af61aa007..47ec27492 100644 --- a/libshiboken/basewrapper.cpp +++ b/libshiboken/basewrapper.cpp @@ -666,6 +666,11 @@ void releaseOwnership(PyObject* pyObj) setSequenceOwnership(pyObj, false); } +bool hasParentInfo(SbkObject* pyObj) +{ + return pyObj->d->parentInfo; +} + void* cppPointer(SbkObject* pyObj, PyTypeObject* desiredType) { PyTypeObject* type = pyObj->ob_type; |