From 7f1c98177bb27a45886fd7e42aa72bef9b1e4a0f Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 28 Mar 2015 01:14:45 +0200 Subject: vm: Support strict stackless mode, with proper exception reporting. I.e. in this mode, C stack will never be used to call a Python function, but if there's no free heap for a call, it will be reported as RuntimeError (as expected), not MemoryError. --- py/runtime.h | 1 + 1 file changed, 1 insertion(+) (limited to 'py/runtime.h') diff --git a/py/runtime.h b/py/runtime.h index 8666ce107..a36f1b1bd 100644 --- a/py/runtime.h +++ b/py/runtime.h @@ -130,6 +130,7 @@ void mp_import_all(mp_obj_t module); // Raise NotImplementedError with given message NORETURN void mp_not_implemented(const char *msg); +NORETURN void mp_exc_recursion_depth(void); // helper functions for native/viper code mp_uint_t mp_convert_obj_to_native(mp_obj_t obj, mp_uint_t type); -- cgit v1.2.3