micropython: add micropython component
This commit is contained in:
7
components/language/micropython/shared/libc/abort_.c
Normal file
7
components/language/micropython/shared/libc/abort_.c
Normal file
@@ -0,0 +1,7 @@
|
||||
#include <py/runtime.h>
|
||||
|
||||
NORETURN void abort_(void);
|
||||
|
||||
NORETURN void abort_(void) {
|
||||
mp_raise_msg(&mp_type_RuntimeError, MP_ERROR_TEXT("abort() called"));
|
||||
}
|
Reference in New Issue
Block a user