aboutsummaryrefslogtreecommitdiff
path: root/py/mpstate.h
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2021-07-27 00:41:27 +1000
committerDamien George <damien@micropython.org>2022-03-10 10:43:21 +1100
commitcac939ddc3625da7e6cf1cf0309daba25fc1cedb (patch)
tree8e0417aab0ea5c9e22d6679edefb6a265cd31ab5 /py/mpstate.h
parentbc181550a4790f4dcfaf10e7e61ecfcdf346d5a8 (diff)
py/modsys: Add optional sys.tracebacklimit attribute.
With behaviour as per CPython. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/mpstate.h')
-rw-r--r--py/mpstate.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/py/mpstate.h b/py/mpstate.h
index f29e6be50..499d86351 100644
--- a/py/mpstate.h
+++ b/py/mpstate.h
@@ -41,6 +41,9 @@
// variable, but in the future it is hoped that the state can become local.
enum {
+ #if MICROPY_PY_SYS_TRACEBACKLIMIT
+ MP_SYS_MUTABLE_TRACEBACKLIMIT,
+ #endif
MP_SYS_MUTABLE_NUM,
};