summaryrefslogtreecommitdiffstatshomepage
path: root/py/stackctrl.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-12-10 18:05:42 +0000
committerDamien George <damien.p.george@gmail.com>2014-12-10 18:05:42 +0000
commitb4fe6e28eb3bbf70b1f1da08a13a40a4ac3ee1db (patch)
treeb7c43d47260d24ccfb107ca6cadf283bf2dd6289 /py/stackctrl.c
parent78d702c300ae9f175e6f47f805a37cdfe5b81898 (diff)
downloadmicropython-b4fe6e28eb3bbf70b1f1da08a13a40a4ac3ee1db.tar.gz
micropython-b4fe6e28eb3bbf70b1f1da08a13a40a4ac3ee1db.zip
py: Fix function type: () -> (void).
Diffstat (limited to 'py/stackctrl.c')
-rw-r--r--py/stackctrl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/stackctrl.c b/py/stackctrl.c
index 2ee5dd6472..0ba43c28c7 100644
--- a/py/stackctrl.c
+++ b/py/stackctrl.c
@@ -35,12 +35,12 @@
// Stack top at the start of program
char *stack_top;
-void mp_stack_ctrl_init() {
+void mp_stack_ctrl_init(void) {
volatile int stack_dummy;
stack_top = (char*)&stack_dummy;
}
-mp_uint_t mp_stack_usage() {
+mp_uint_t mp_stack_usage(void) {
// Assumes descending stack
volatile int stack_dummy;
return stack_top - (char*)&stack_dummy;
@@ -54,7 +54,7 @@ void mp_stack_set_limit(mp_uint_t limit) {
stack_limit = limit;
}
-void mp_stack_check() {
+void mp_stack_check(void) {
if (mp_stack_usage() >= stack_limit) {
nlr_raise(mp_obj_new_exception_msg(&mp_type_RuntimeError, "maximum recursion depth exceeded"));
}