summaryrefslogtreecommitdiff
path: root/py/misc.h
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2021-04-22 12:13:58 +1000
committerDamien George <damien@micropython.org>2021-04-27 23:51:52 +1000
commitd4b706c4d01377d42855ff1544ced77536f69caf (patch)
treecfdb78c011813396af745720c1a7754ac91487d7 /py/misc.h
parent30d9f77cc535306eeb9eed6f17e71355fd58995a (diff)
py: Add option to compile without any error messages at all.
This introduces a new option, MICROPY_ERROR_REPORTING_NONE, which completely disables all error messages. To be used in cases where MicroPython needs to fit in very limited systems. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/misc.h')
-rw-r--r--py/misc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/misc.h b/py/misc.h
index fe2b3b8af..953809838 100644
--- a/py/misc.h
+++ b/py/misc.h
@@ -264,6 +264,10 @@ typedef union _mp_float_union_t {
#if MICROPY_ROM_TEXT_COMPRESSION
+#if MICROPY_ERROR_REPORTING == MICROPY_ERROR_REPORTING_NONE
+#error "MICROPY_ERROR_REPORTING_NONE requires MICROPY_ROM_TEXT_COMPRESSION disabled"
+#endif
+
#ifdef NO_QSTR
// Compression enabled but doing QSTR extraction.