diff options
author | Alessandro Gatti <a.gatti@frob.it> | 2025-01-15 16:25:55 +0100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-05-13 10:36:47 +1000 |
commit | f47e214cdcf11c2067936cb4b4e4f9deab73f6fc (patch) | |
tree | 952d3ba600015817cd445f875c3072437951528d /py/argcheck.c | |
parent | 69993daa5c2eae6055f0b3b2330e95e78d6e3738 (diff) | |
download | micropython-f47e214cdcf11c2067936cb4b4e4f9deab73f6fc.tar.gz micropython-f47e214cdcf11c2067936cb4b4e4f9deab73f6fc.zip |
all: Rename the "NORETURN" macro to "MP_NORETURN".
This commit renames the NORETURN macro, indicating to the compiler
that a function does not return, into MP_NORETURN to maintain the same
naming convention of other similar macros.
To maintain compaitiblity with existing code NORETURN is aliased to
MP_NORETURN, but it is also deprecated for MicroPython v2.
This changeset was created using a similar process to
decf8e6a8bb940d5829ca3296790631fcece7b21 ("all: Remove the "STATIC"
macro and just use "static" instead."), with no documentation or python
scripts to change to reflect the new macro name.
Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
Diffstat (limited to 'py/argcheck.c')
-rw-r--r-- | py/argcheck.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/argcheck.c b/py/argcheck.c index 35b116ec0d..298c19bcfd 100644 --- a/py/argcheck.c +++ b/py/argcheck.c @@ -137,12 +137,12 @@ void mp_arg_parse_all_kw_array(size_t n_pos, size_t n_kw, const mp_obj_t *args, mp_arg_parse_all(n_pos, args, &kw_args, n_allowed, allowed, out_vals); } -NORETURN void mp_arg_error_terse_mismatch(void) { +MP_NORETURN void mp_arg_error_terse_mismatch(void) { mp_raise_TypeError(MP_ERROR_TEXT("argument num/types mismatch")); } #if MICROPY_CPYTHON_COMPAT -NORETURN void mp_arg_error_unimpl_kw(void) { +MP_NORETURN void mp_arg_error_unimpl_kw(void) { mp_raise_NotImplementedError(MP_ERROR_TEXT("keyword argument(s) not implemented - use normal args instead")); } #endif |