diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-07-30 00:35:50 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-07-30 00:35:50 +0300 |
commit | c8b80e4740baa0f3bdf025a23f92c3a1ff2bf6fc (patch) | |
tree | be51ce5d193bc6db7e96c4d647d1dd6d0237c6a7 /py | |
parent | 4f1b0292dbc5920457673a31cadfd894239cc1b9 (diff) | |
download | micropython-c8b80e4740baa0f3bdf025a23f92c3a1ff2bf6fc.tar.gz micropython-c8b80e4740baa0f3bdf025a23f92c3a1ff2bf6fc.zip |
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.
Diffstat (limited to 'py')
-rw-r--r-- | py/py.mk | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -221,6 +221,7 @@ PY_O_BASENAME = \ ../extmod/vfs_fat_lexer.o \ ../extmod/vfs_fat_misc.o \ ../extmod/moduos_dupterm.o \ + ../lib/embed/abort_.o \ # prepend the build destination prefix to the py object files PY_O = $(addprefix $(PY_BUILD)/, $(PY_O_BASENAME)) |