aboutsummaryrefslogtreecommitdiff
path: root/py/objlist.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-02-15 22:24:03 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-02-15 22:41:14 +0300
commitfa3b8951452ca13a807c0b6a090e0385507113db (patch)
tree84f4d280e5e696a91528327aae226adeb3f28bbd /py/objlist.h
parent29c4f92e13f27a6fabf7556184325c2483ace358 (diff)
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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/objlist.h b/py/objlist.h
index 443ede574..1f3f45212 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__