X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fpy-common%2Fpy-common.h;h=1ac5f21fc22680228ed0e8c08ea9459a3809e5ac;hp=6622438a275c789ba88998fb3a43c96eddf138db;hb=b53cd76821d15e3d80780f5d527aa4074ba71256;hpb=701698c8de3db89105f62ad3008f55db665c2059 diff --git a/src/py-common/py-common.h b/src/py-common/py-common.h index 6622438a..1ac5f21f 100644 --- a/src/py-common/py-common.h +++ b/src/py-common/py-common.h @@ -31,6 +31,13 @@ #include "common/macros.h" +/* + * Formats the Python traceback `py_exc_tb` using traceback.format_tb, from the + * Python standard library, and return it as a Gstring. + */ +BT_HIDDEN +GString *bt_py_common_format_tb(PyObject *py_exc_tb, int log_level); + /* * Formats the Python exception described by `py_exc_type`, `py_exc_value` * and `py_exc_tb` and returns the formatted string, or `NULL` on error. The