summaryrefslogtreecommitdiff
path: root/py/misc.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-10 14:38:25 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-10 14:38:25 +0100
commitf0954e3fac03c35a91e544c2ffddc12b82d7f8a0 (patch)
tree88f87cd0f2c387412953f21c9ff53adb5481e99a /py/misc.h
parent6f355fd3b914dfb31f9d8527670448a9fc323e81 (diff)
py: Add emergency exception object for when heap allocation fails.
Diffstat (limited to 'py/misc.h')
-rw-r--r--py/misc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/misc.h b/py/misc.h
index 4112a6f0d..3f538b98e 100644
--- a/py/misc.h
+++ b/py/misc.h
@@ -38,6 +38,7 @@ typedef unsigned int uint;
#define m_del_var(obj_type, var_type, var_num, ptr) (m_free(ptr, sizeof(obj_type) + sizeof(var_type) * (var_num)))
void *m_malloc(int num_bytes);
+void *m_malloc_maybe(int num_bytes);
void *m_malloc_with_finaliser(int num_bytes);
void *m_malloc0(int num_bytes);
void *m_realloc(void *ptr, int old_num_bytes, int new_num_bytes);