Created attachment 13573
patch
the Interpreter class looks up external functions with a static map, keyed on
Function *. this makes it impossible to reliably have multiple Interpreter
instances in the same process. when I expose some callback to one instance, do
my thing and tear it all down, then expose some other callback to another
instance that just happens to get the same Function pointer as the earlier one,
hilarity ensues.
this is not a problem if those maps are in the Interpreter instance. patch
attached.
d
(7382 bytes, application/octet-stream)