From 4ebdb1f2b217410cdc1cee0e0c0da8fceb7627f2 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 18 Oct 2016 11:06:20 +1100 Subject: 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. --- esp8266/modpyb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'esp8266') diff --git a/esp8266/modpyb.h b/esp8266/modpyb.h index 45d0bb8cf..c23a119e8 100644 --- a/esp8266/modpyb.h +++ b/esp8266/modpyb.h @@ -13,7 +13,7 @@ extern const mp_obj_type_t pyb_spi_type; extern const mp_obj_type_t pyb_hspi_type; extern const mp_obj_type_t machine_spi_type; -MP_DECLARE_CONST_FUN_OBJ(pyb_info_obj); +MP_DECLARE_CONST_FUN_OBJ_VAR_BETWEEN(pyb_info_obj); typedef struct _pyb_pin_obj_t { mp_obj_base_t base; -- cgit v1.2.3