summaryrefslogtreecommitdiffstatshomepage
path: root/py/nativeglue.c
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2023-10-13 17:33:29 +1100
committerDamien George <damien@micropython.org>2023-10-16 11:22:55 +1100
commit9c7ea9b14ac0378f580bd8ed55b22ef311eda20b (patch)
tree71fed46d0b04a3f49833a61a74b009bea46e0852 /py/nativeglue.c
parent516385c4ccbb1f7fa9dbd37a44ed8ae33dcf1942 (diff)
downloadmicropython-9c7ea9b14ac0378f580bd8ed55b22ef311eda20b.tar.gz
micropython-9c7ea9b14ac0378f580bd8ed55b22ef311eda20b.zip
py/obj: Generalise mp_get_buffer so it can raise if a flag is set.
This allows mp_get_buffer_raise() to be changed to a simple inline function that in the majority of cases costs the same (in code size) to call as the original mp_get_buffer_raise(), because the flags argument is a constant. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/nativeglue.c')
0 files changed, 0 insertions, 0 deletions