From c8b80e4740baa0f3bdf025a23f92c3a1ff2bf6fc Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 30 Jul 2016 00:35:50 +0300 Subject: 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. --- py/py.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'py') diff --git a/py/py.mk b/py/py.mk index 6781504293..948d7a67f3 100644 --- a/py/py.mk +++ b/py/py.mk @@ -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)) -- cgit v1.2.3