X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=exception.c;h=cd9d2b267efe49bac893eb380c5552cd94647e4d;hp=1f30c80d95a440b2a8ab7c62fb08e1d24bc463bd;hb=50bd5d259677faf87bb3408e111d0e833d7ba9b4;hpb=55c3c5f4b9d38b85fae2c39a8a6150b4c50b1bdb diff --git a/exception.c b/exception.c index 1f30c80..cd9d2b2 100644 --- a/exception.c +++ b/exception.c @@ -1,5 +1,5 @@ /* - * This file is part of the sigrok project. + * This file is part of the libsigrokdecode project. * * Copyright (C) 2012 Bert Vermeulen * @@ -24,7 +24,8 @@ #include #include /* Python header not pulled in by default. */ -SRD_PRIV void catch_exception(const char *format, ...) +/** @private */ +SRD_PRIV void srd_exception_catch(const char *format, ...) { PyObject *etype, *evalue, *etb, *py_str; PyTracebackObject *py_tb; @@ -67,7 +68,7 @@ SRD_PRIV 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,