From 1f85d6255d6929edbcfc087e4e07c2fde39c3632 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 1 May 2014 01:35:38 +0300 Subject: py: Add tentative scheme for error messages configuration. --- py/mpconfig.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'py/mpconfig.h') diff --git a/py/mpconfig.h b/py/mpconfig.h index 04d4a7ddc..8a2e96cc4 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) -- cgit v1.2.3