summaryrefslogtreecommitdiffstatshomepage
path: root/py/mpconfig.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-05-01 01:35:38 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-05-01 01:50:35 +0300
commit1f85d6255d6929edbcfc087e4e07c2fde39c3632 (patch)
tree218a841eb937c068cdace5710e408309c898cc7e /py/mpconfig.h
parent68551a842892bd03e82176c0de3b751779a95a0f (diff)
downloadmicropython-1f85d6255d6929edbcfc087e4e07c2fde39c3632.tar.gz
micropython-1f85d6255d6929edbcfc087e4e07c2fde39c3632.zip
py: Add tentative scheme for error messages configuration.
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r--py/mpconfig.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index 04d4a7ddc9..8a2e96cc4a 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -94,6 +94,17 @@ typedef long long mp_longint_impl_t;
#define MICROPY_ENABLE_DOC_STRING (0)
#endif
+// Exception messages are short static strings (TODO)
+#define MICROPY_ERROR_REPORTING_TERSE (1)
+// Exception messages provide basic error details
+#define MICROPY_ERROR_REPORTING_NORMAL (2)
+// Exception messages provide full info, e.g. object names
+#define MICROPY_ERROR_REPORTING_DETAILED (3)
+
+#ifndef MICROPY_ERROR_REPORTING
+#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_NORMAL)
+#endif
+
// Float and complex implementation
#define MICROPY_FLOAT_IMPL_NONE (0)
#define MICROPY_FLOAT_IMPL_FLOAT (1)