summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorDavePutz <dwputz@gmail.com>2020-05-21 11:05:24 -0500
committerGitHub <noreply@github.com>2020-05-21 11:05:24 -0500
commit1f40f9e04ff9be0eb82f56014bde5749be604ad9 (patch)
treecac462c8edf2c5f34bca1b9063652be4f2b6f2e4 /py
parent7fa5009674c7741436fd45a3d2009019280aa6f6 (diff)
parentedc5d8938e0360a61fcea03344d3c525d836048d (diff)
Merge pull request #5 from adafruit/master
update from adafruit
Diffstat (limited to 'py')
-rw-r--r--py/circuitpy_mpconfig.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/py/circuitpy_mpconfig.h b/py/circuitpy_mpconfig.h
index 6ea413216..5f2605c92 100644
--- a/py/circuitpy_mpconfig.h
+++ b/py/circuitpy_mpconfig.h
@@ -216,6 +216,10 @@ typedef long mp_off_t;
#define MP_SSIZE_MAX (0x7fffffff)
#endif
+#ifndef MICROPY_PY_REVERSE_SPECIAL_METHODS
+#define MICROPY_PY_REVERSE_SPECIAL_METHODS (CIRCUITPY_FULL_BUILD)
+#endif
+
#if INTERNAL_FLASH_FILESYSTEM == 0 && QSPI_FLASH_FILESYSTEM == 0 && SPI_FLASH_FILESYSTEM == 0 && !DISABLE_FILESYSTEM
#error No *_FLASH_FILESYSTEM set!
#endif
@@ -610,11 +614,16 @@ extern const struct _mp_obj_module_t ustack_module;
#endif
#if defined(CIRCUITPY_ULAB) && CIRCUITPY_ULAB
+// ulab requires reverse special methods
+#if defined(MICROPY_PY_REVERSE_SPECIAL_METHODS) && !MICROPY_PY_REVERSE_SPECIAL_METHODS
+#error "ulab requires MICROPY_PY_REVERSE_SPECIAL_METHODS"
+#endif
#define ULAB_MODULE \
{ MP_ROM_QSTR(MP_QSTR_ulab), MP_ROM_PTR(&ulab_user_cmodule) },
#else
#define ULAB_MODULE
#endif
+
#if MICROPY_PY_URE
#define RE_MODULE { MP_ROM_QSTR(MP_QSTR_re), MP_ROM_PTR(&mp_module_ure) },
#else