diff options
author | Damien George <damien.p.george@gmail.com> | 2016-10-18 11:06:20 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-10-21 16:26:01 +1100 |
commit | 4ebdb1f2b217410cdc1cee0e0c0da8fceb7627f2 (patch) | |
tree | d6188cf8f6579ffa66b8370032b8184a901a5312 /stmhal/portmodules.h | |
parent | 5d0735b93a52ff7f2f41dd27f3a22ca847f6b49b (diff) | |
download | micropython-4ebdb1f2b217410cdc1cee0e0c0da8fceb7627f2.tar.gz micropython-4ebdb1f2b217410cdc1cee0e0c0da8fceb7627f2.zip |
py: Be more specific with MP_DECLARE_CONST_FUN_OBJ macros.
In order to have more fine-grained control over how builtin functions are
constructed, the MP_DECLARE_CONST_FUN_OBJ macros are made more specific,
with suffix of _0, _1, _2, _3, _VAR, _VAR_BETEEN or _KW. These names now
match the MP_DEFINE_CONST_FUN_OBJ macros.
Diffstat (limited to 'stmhal/portmodules.h')
-rw-r--r-- | stmhal/portmodules.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stmhal/portmodules.h b/stmhal/portmodules.h index 68ae2f47ce..173d53cc68 100644 --- a/stmhal/portmodules.h +++ b/stmhal/portmodules.h @@ -33,8 +33,8 @@ extern const mp_obj_module_t mp_module_usocket; // additional helper functions exported by the modules -MP_DECLARE_CONST_FUN_OBJ(time_sleep_ms_obj); -MP_DECLARE_CONST_FUN_OBJ(time_sleep_us_obj); +MP_DECLARE_CONST_FUN_OBJ_1(time_sleep_ms_obj); +MP_DECLARE_CONST_FUN_OBJ_1(time_sleep_us_obj); -MP_DECLARE_CONST_FUN_OBJ(mod_os_sync_obj); -MP_DECLARE_CONST_FUN_OBJ(mod_os_dupterm_obj); +MP_DECLARE_CONST_FUN_OBJ_0(mod_os_sync_obj); +MP_DECLARE_CONST_FUN_OBJ_VAR_BETWEEN(mod_os_dupterm_obj); |