bt2: don't print previous causes in causes created from bt2._Error
[babeltrace.git] / src / py-common / py-common.h
index 6622438a275c789ba88998fb3a43c96eddf138db..1ac5f21fc22680228ed0e8c08ea9459a3809e5ac 100644 (file)
 
 #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
This page took 0.023131 seconds and 4 git commands to generate.