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=332c7e114015bd24835cb29cce58cb0ec3d008dc;hpb=23256fd15c8ac7d1faaa3e37d0df2e225e90a6c6 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