projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bt2: don't print previous causes in causes created from bt2._Error
[babeltrace.git]
/
src
/
py-common
/
py-common.h
diff --git
a/src/py-common/py-common.h
b/src/py-common/py-common.h
index 6622438a275c789ba88998fb3a43c96eddf138db..1ac5f21fc22680228ed0e8c08ea9459a3809e5ac 100644
(file)
--- a/
src/py-common/py-common.h
+++ b/
src/py-common/py-common.h
@@
-31,6
+31,13
@@
#include "common/macros.h"
#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
/*
* 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.024753 seconds
and
4
git commands to generate.