aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken/helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'libshiboken/helper.h')
-rw-r--r--libshiboken/helper.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libshiboken/helper.h b/libshiboken/helper.h
index 52b41270f..b5e0b624e 100644
--- a/libshiboken/helper.h
+++ b/libshiboken/helper.h
@@ -92,6 +92,12 @@ LIBSHIBOKEN_API bool sequenceToArgcArgv(PyObject* argList, int* argc, char*** ar
*/
LIBSHIBOKEN_API int* sequenceToIntArray(PyObject* obj, bool zeroTerminated = false);
+
+/**
+ * An utility function used to call PyErr_WarnEx with a formatted message.
+ */
+LIBSHIBOKEN_API int warning(PyObject *category, int stacklevel, const char *format, ...);
+
} // namespace Shiboken
#endif // HELPER_H