summaryrefslogtreecommitdiff
path: root/py/obj.c
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2021-09-24 12:49:51 +1000
committerDamien George <damien@micropython.org>2021-10-15 23:31:19 +1100
commit8412568e7bec1b63b686eb46a2790c6f182e7d5b (patch)
tree84a9d929bd7c5271ffa5d6b7af2cf454c1cd11b1 /py/obj.c
parenteea6cd85b37351ceda1b4c80a804912605977997 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/obj.c b/py/obj.c
index f66a9d183..5255e9655 100644
--- a/py/obj.c
+++ b/py/obj.c
@@ -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)) {