mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 19:20:22 +01:00
py: Make m_malloc_fail() have void return type, since it doesn't return.
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
|
||||
|
||||
NORETURN 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 MICROPY_ENABLE_GC
|
||||
if (gc_is_locked()) {
|
||||
|
||||
Reference in New Issue
Block a user