diff options
author | Damien George <damien.p.george@gmail.com> | 2020-02-18 21:00:42 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-02-18 21:00:42 +1100 |
commit | 1fccda049ff601cc148c7bc99ae255f3d23db8e2 (patch) | |
tree | 85b3893eb0addfe3558da0daa861797fca6670d2 /py/runtime.c | |
parent | cddb90e8b0cd42be9a71e307ab83c6e85afcaf61 (diff) |
py/objexcept: Rename mp_obj_new_exception_msg_varg2 to ..._vlist.
Follow up to recent commit ad7213d3c31bccb26a3f54f7492ccf4b0cc920f3, the
name "varg2" is misleading, vlist describes better that the argument is a
va_list. This name also matches CircuitPython, which already has such
helper functions.
Diffstat (limited to 'py/runtime.c')
-rw-r--r-- | py/runtime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/runtime.c b/py/runtime.c index e824421f7..3926f89ce 100644 --- a/py/runtime.c +++ b/py/runtime.c @@ -1494,7 +1494,7 @@ NORETURN void mp_raise_msg(const mp_obj_type_t *exc_type, const char *msg) { NORETURN void mp_raise_msg_varg(const mp_obj_type_t *exc_type, const char *fmt, ...) { va_list args; va_start(args, fmt); - mp_obj_t exc = mp_obj_new_exception_msg_varg2(exc_type, fmt, args); + mp_obj_t exc = mp_obj_new_exception_msg_vlist(exc_type, fmt, args); va_end(args); nlr_raise(exc); } |