diff options
author | Damien George <damien.p.george@gmail.com> | 2016-04-13 00:01:28 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-04-13 00:01:28 +0100 |
commit | 3177ef544f5ecdfe5810461734fce470249e8129 (patch) | |
tree | 7ba7d8c9e844b786e5234996f4c4fe4c81dd8cdf /esp8266/utils.h | |
parent | b67d09884137be7c8faaaf641ea22a014e7d4cb0 (diff) | |
download | micropython-3177ef544f5ecdfe5810461734fce470249e8129.tar.gz micropython-3177ef544f5ecdfe5810461734fce470249e8129.zip |
esp8266: In callback helpers, pop nlr_buf on successful call.
nlr_pop must be called if no exception was raised.
Also, return value of these callback helpers is made void because ther
is (currently) no use for it.
Diffstat (limited to 'esp8266/utils.h')
-rw-r--r-- | esp8266/utils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/esp8266/utils.h b/esp8266/utils.h index ceef9720e8..c6a4f1f3e6 100644 --- a/esp8266/utils.h +++ b/esp8266/utils.h @@ -25,5 +25,5 @@ * THE SOFTWARE. */ -mp_obj_t call_function_1_protected(mp_obj_t fun, mp_obj_t arg); -mp_obj_t call_function_2_protected(mp_obj_t fun, mp_obj_t arg1, mp_obj_t arg2); +void call_function_1_protected(mp_obj_t fun, mp_obj_t arg); +void call_function_2_protected(mp_obj_t fun, mp_obj_t arg1, mp_obj_t arg2); |