wren
wren copied to clipboard
api: add wrenCopySlot
Simple utility function which copies a value from one slot to another, as originally proposed in #836
Instead add wrenCopySlots and make wrenCopySlot a special case/macro...
I thought about that, but it opens up memcpy esque cans of worms (what do we do if they're overlapping).
Nothing insurmountable but I've never actually needed to move multiple
Well this can be as this for now. The main usage for copying in block, is
when one needs to realign the stack for a reentrant call, or when
performing tail call optimisation (which are not supported yet).. That
said, implementation should always be safest, so it should follow memmove
semantic.