Commit Graph
2 Commits
Author SHA1 Message Date
scott bbc8f9c0d2 fix: add missing WrenVM* parameter to reportError signature in vm.c
The reportError function signature was missing the WrenVM* parameter required by the updated Wren API, causing a compilation error when the CLI attempted to register it as the error callback. Added the vm parameter to match the expected callback type.
2017-01-20 03:58:52 +00:00
scott b2b187ab07 feat: add user-defined state data pointer and accessors to WrenVM
Add a `userData` void pointer field to `WrenConfiguration` and expose `wrenGetUserData`/`wrenSetUserData` functions for associating arbitrary state with a VM instance. Also update the `WrenErrorFn` signature to include the `WrenVM*` parameter, and propagate the VM pointer through all error callback invocations in the compiler, debug, and runtime paths.
2017-01-20 03:54:25 +00:00