From fa3b8951452ca13a807c0b6a090e0385507113db Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 15 Feb 2015 22:24:03 +0300 Subject: 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. --- py/objlist.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'py/objlist.h') 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__ -- cgit v1.2.3