aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/libshiboken/helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/libshiboken/helper.h')
-rw-r--r--sources/shiboken2/libshiboken/helper.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/sources/shiboken2/libshiboken/helper.h b/sources/shiboken2/libshiboken/helper.h
index 14aae8028..7e46f3d93 100644
--- a/sources/shiboken2/libshiboken/helper.h
+++ b/sources/shiboken2/libshiboken/helper.h
@@ -44,6 +44,8 @@
#include "shibokenmacros.h"
#include "autodecref.h"
+#include <iosfwd>
+
#define SBK_UNUSED(x) (void)(x);
namespace Shiboken
@@ -99,6 +101,24 @@ LIBSHIBOKEN_API ThreadId mainThreadId();
*/
LIBSHIBOKEN_API int warning(PyObject *category, int stacklevel, const char *format, ...);
+struct LIBSHIBOKEN_API debugPyObject
+{
+ explicit debugPyObject(PyObject *o);
+
+ PyObject *m_object;
+};
+
+struct LIBSHIBOKEN_API debugPyTypeObject
+{
+ explicit debugPyTypeObject(const PyTypeObject *o);
+
+ const PyTypeObject *m_object;
+};
+
+LIBSHIBOKEN_API std::ostream &operator<<(std::ostream &str, const debugPyObject &o);
+LIBSHIBOKEN_API std::ostream &operator<<(std::ostream &str, const debugPyTypeObject &o);
+
} // namespace Shiboken
+
#endif // HELPER_H