diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-04-04 10:52:59 +0000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-04-04 10:52:59 +0000 |
| commit | 6902eeda259a5ed8fe3a5ce5cb19ba9207549d33 (patch) | |
| tree | d018a0c7a42e03d0705efedbd116ac5de3ad886d /py/obj.h | |
| parent | 072cf022e007e03a8b850a7197585403868923ab (diff) | |
py: Add m_malloc_fail function to handle memory allocation error.
A malloc/realloc fail now throws MemoryError.
Diffstat (limited to 'py/obj.h')
| -rw-r--r-- | py/obj.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -306,6 +306,7 @@ extern const struct _mp_obj_bool_t mp_const_false_obj; extern const struct _mp_obj_bool_t mp_const_true_obj; extern const struct _mp_obj_tuple_t mp_const_empty_tuple_obj; extern const struct _mp_obj_ellipsis_t mp_const_ellipsis_obj; +extern const struct _mp_obj_exception_t mp_const_MemoryError_obj; extern const struct _mp_obj_exception_t mp_const_GeneratorExit_obj; // General API for objects |
