diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-02-15 22:24:03 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-02-15 22:41:14 +0300 |
commit | fa3b8951452ca13a807c0b6a090e0385507113db (patch) | |
tree | 84f4d280e5e696a91528327aae226adeb3f28bbd /py/objlist.h | |
parent | 29c4f92e13f27a6fabf7556184325c2483ace358 (diff) | |
download | micropython-fa3b8951452ca13a807c0b6a090e0385507113db.tar.gz micropython-fa3b8951452ca13a807c0b6a090e0385507113db.zip |
objexcept: Optimize traceback allocation for exception.
Traceback allocation for exception will now never lead to recursive
MemoryError exception - if there's no memory for traceback, it simply
won't be created.
Diffstat (limited to 'py/objlist.h')
-rw-r--r-- | py/objlist.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/objlist.h b/py/objlist.h index 443ede5743..1f3f45212c 100644 --- a/py/objlist.h +++ b/py/objlist.h @@ -35,4 +35,6 @@ typedef struct _mp_obj_list_t { mp_obj_t *items; } mp_obj_list_t; +mp_obj_t mp_obj_new_list_maybe(mp_uint_t n); + #endif // __MICROPY_INCLUDED_PY_OBJLIST_H__ |