diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-05-10 14:41:03 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:15:22 -0300 |
commit | ce1d707bef6426a1f18f92ab729dc4d89fbe63e4 (patch) | |
tree | 7be0f9f2cfe39545d009806d1ce6ac300c915e5f /libshiboken/basewrapper.h | |
parent | 7327989fb85595d1795c1dbd013428b8909b2f0a (diff) |
Improved the SbkDbg to avoid throwing exceptions when showing an object.
Also added a new Shiboken::Object::isValid signature to help.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Lauro Moura <lauro.neto@openbossa.org>
Diffstat (limited to 'libshiboken/basewrapper.h')
-rw-r--r-- | libshiboken/basewrapper.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libshiboken/basewrapper.h b/libshiboken/basewrapper.h index 1abd43f48..bca252c72 100644 --- a/libshiboken/basewrapper.h +++ b/libshiboken/basewrapper.h @@ -263,6 +263,13 @@ LIBSHIBOKEN_API bool isValid(PyObject* pyObj); LIBSHIBOKEN_API bool isValid(SbkObject* pyObj, bool throwPyError = true); /** + * Returns false if the Python wrapper is not marked as valid. + * \param pyObj the object. + * \param throwPyError sets a Python RuntimeError when the object isn't valid. + */ +LIBSHIBOKEN_API bool isValid(PyObject* pyObj, bool throwPyError); + +/** * Set the parent of \p child to \p parent. * When an object dies, all their children, grandchildren, etc, are tagged as invalid. * \param parent the parent object, if null, the child will have no parents. |