diff options
author | Renato Filho <renato.filho@openbossa.org> | 2011-06-02 13:08:20 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:15:24 -0300 |
commit | 48c3f893b3024071bafe04412d52f0086b396f2b (patch) | |
tree | b98a7dd8df52a77816c3770366ba868ffa48cae1 /libshiboken/helper.h | |
parent | 0e6d4cc1d151724f56c6ccf8c431077e2c778b26 (diff) |
Created Shiboken::warning function.
This is a help function to make able call python warning with formatted strings.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'libshiboken/helper.h')
-rw-r--r-- | libshiboken/helper.h | 6 |
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 |