micropython/lib/embed/abort_.c

8 lines
167 B
C

#include <py/runtime.h>
NORETURN void abort_(void);
NORETURN void abort_(void) {
nlr_raise(mp_obj_new_exception_msg(&mp_type_RuntimeError, "abort() called"));
}