Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update default reallocateFn & loadModuleFn to match new wren 0.4.0 signatures #3

Merged
merged 2 commits into from
Dec 28, 2020

Conversation

PossiblyAShrub
Copy link
Contributor

Wren 0.4.0 is currently in pre-release. It introduces two breaking API changes, this patch updates both of the affected default Wren VM config functions (reallocateFn & loadModuleFn.)

I have started using Wren 0.4.0 in my projects, however, perhaps we should wait until the full release before merging? Thank you for the wonderful library!

@matusnovak
Copy link
Owner

Hi @PossiblyAShrub

Thanks for the fix! Don't worry about the failing GitHub actions for now.

It would be possible to do #if version of Wren >= 0.4.0 ... new code ... #else ... old code ... #endif based on this: https://github.com/wren-lang/wren/blob/main/src/include/wren.h#L9-L11 That way, depending on what version of Wren is used, this patch would be compiled or skipped.

I will have a look at this either today or tomorrow to propose some changes.

@matusnovak
Copy link
Owner

Awesome! Thank you.

@matusnovak matusnovak merged commit bf0cf5d into matusnovak:master Dec 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants