GothicKit / ZenKit

A re-implementation of file formats used by the early 2000's ZenGin
http://zk.gothickit.dev/
MIT License
44 stars 10 forks source link

[v1.0.0] make sure the stack is kept intact when executing instructions fails #25

Closed lmichaelis closed 1 year ago

lmichaelis commented 1 year ago

This is most important in the opcode::be handler where the return value of the external is not pushed if it is not registered. Other opcodes might benefit from such a system as well. The most practical implementation would probably be an RAII helper class.