diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-05-01 01:35:38 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-05-01 01:50:35 +0300 |
commit | 1f85d6255d6929edbcfc087e4e07c2fde39c3632 (patch) | |
tree | 218a841eb937c068cdace5710e408309c898cc7e /py/mpconfig.h | |
parent | 68551a842892bd03e82176c0de3b751779a95a0f (diff) | |
download | micropython-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.h | 11 |
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) |