Logo
Explore Help
Register Sign In
fengqi/lv_micropython
1
0
Fork 0
You've already forked lv_micropython
Code Issues Pull Requests 1 Actions Packages Projects Releases Wiki Activity
lv_micropython/shared/libc/abort_.c

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
159 B
C
Raw Normal View History

lib/embed/abort_: Implementation of abort_() function raising uPy exception. Helpful when porting existing C libraries to MicroPython. abort()ing in embedded environment isn't a good idea, so when compiling such library, -Dabort=abort_ option can be given to redirect standard abort() to this "safe" version.
2016-07-30 00:35:50 +03:00
#include <py/runtime.h>
lib/abort_.c: Add prototype to make coverage build happy.
2016-07-30 17:52:06 +03:00
NORETURN void abort_(void);
NORETURN void abort_(void) {
all: Use MP_ERROR_TEXT for all error messages.
2020-03-02 22:35:22 +11:00
mp_raise_msg(&mp_type_RuntimeError, MP_ERROR_TEXT("abort() called"));
lib/embed/abort_: Implementation of abort_() function raising uPy exception. Helpful when porting existing C libraries to MicroPython. abort()ing in embedded environment isn't a good idea, so when compiling such library, -Dabort=abort_ option can be given to redirect standard abort() to this "safe" version.
2016-07-30 00:35:50 +03:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 106ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API