We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba2c503 commit 58d9d85Copy full SHA for 58d9d85
1 file changed
lib/embed/abort_.c
@@ -1,5 +1,7 @@
1
#include <py/runtime.h>
2
3
-void abort_(void) {
+NORETURN void abort_(void);
4
+
5
+NORETURN void abort_(void) {
6
nlr_raise(mp_obj_new_exception_msg(&mp_type_RuntimeError, "abort() called"));
7
}
0 commit comments