mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 04:00:28 +01:00
py/runtime: Mark m_malloc_fail() as NORETURN.
This commit is contained in:
@@ -1408,7 +1408,7 @@ mp_obj_t mp_parse_compile_execute(mp_lexer_t *lex, mp_parse_input_kind_t parse_i
|
||||
|
||||
#endif // MICROPY_ENABLE_COMPILER
|
||||
|
||||
void *m_malloc_fail(size_t num_bytes) {
|
||||
NORETURN void *m_malloc_fail(size_t num_bytes) {
|
||||
DEBUG_printf("memory allocation failed, allocating %u bytes\n", (uint)num_bytes);
|
||||
if (0) {
|
||||
// dummy
|
||||
|
||||
Reference in New Issue
Block a user