summaryrefslogtreecommitdiffstatshomepage
path: root/unix
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-06-20 20:17:43 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-06-20 20:22:31 +0300
commit17a49431d484fd1ea9b08056b10881fd975f7ae1 (patch)
tree1fe828f103a9b9e895f8003cd4e182393eae8b6a /unix
parent7cd46a12aef7931614ad6b8aa10ffb2a28fa73e8 (diff)
downloadmicropython-17a49431d484fd1ea9b08056b10881fd975f7ae1.tar.gz
micropython-17a49431d484fd1ea9b08056b10881fd975f7ae1.zip
unix: Allow to override MICROPY_GCREGS_SETJMP from cmdline.
Diffstat (limited to 'unix')
-rw-r--r--unix/mpconfigport.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h
index 3426ae44fe..1559bdb359 100644
--- a/unix/mpconfigport.h
+++ b/unix/mpconfigport.h
@@ -53,7 +53,9 @@
#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_DETAILED)
// Define to 1 to use untested inefficient GC helper implementation
// (if more efficient arch-specific one is not available).
+#ifndef MICROPY_GCREGS_SETJMP
#define MICROPY_GCREGS_SETJMP (0)
+#endif
extern const struct _mp_obj_module_t mp_module_os;
extern const struct _mp_obj_module_t mp_module_time;