diff options
| author | Damien George <damien@micropython.org> | 2021-09-24 12:49:51 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2021-10-15 23:31:19 +1100 |
| commit | 8412568e7bec1b63b686eb46a2790c6f182e7d5b (patch) | |
| tree | 84a9d929bd7c5271ffa5d6b7af2cf454c1cd11b1 /py/obj.c | |
| parent | eea6cd85b37351ceda1b4c80a804912605977997 (diff) | |
py: Add wrapper macros so hot VM functions can go in fast code location.
For example, on esp32 they can go in iRAM to improve performance.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/obj.c')
| -rw-r--r-- | py/obj.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -37,7 +37,7 @@ #include "py/stackctrl.h" #include "py/stream.h" // for mp_obj_print -const mp_obj_type_t *mp_obj_get_type(mp_const_obj_t o_in) { +const mp_obj_type_t *MICROPY_WRAP_MP_OBJ_GET_TYPE(mp_obj_get_type)(mp_const_obj_t o_in) { #if MICROPY_OBJ_IMMEDIATE_OBJS && MICROPY_OBJ_REPR == MICROPY_OBJ_REPR_A if (mp_obj_is_obj(o_in)) { |
