X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=exception.c;h=0c248e169e4c4b45502a8d781df86b532e47801c;hp=a67600fa4f50a87eaba3667bcdb7e4b004040627;hb=c07cbb92b129bef7a279169e1d7312811ee5e83f;hpb=c9bfccc6347e05e6faba6f27fe0e50a7d55f531c diff --git a/exception.c b/exception.c index a67600f..0c248e1 100644 --- a/exception.c +++ b/exception.c @@ -24,7 +24,7 @@ #include #include /* Python header not pulled in by default. */ -void catch_exception(const char *format, ...) +SRD_PRIV void srd_exception_catch(const char *format, ...) { PyObject *etype, *evalue, *etb, *py_str; PyTracebackObject *py_tb; @@ -67,7 +67,7 @@ void catch_exception(const char *format, ...) /* Send a more precise error location to srd_dbg(), if we have it. */ if (etb && etb != Py_None) { tracestr = NULL; - py_tb = (PyTracebackObject *) etb; + py_tb = (PyTracebackObject *)etb; py_str = PyUnicode_FromFormat("%U:%d in %U", py_tb->tb_frame->f_code->co_filename, py_tb->tb_frame->f_lineno,