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

#51 Private heaps and MVM_EXPORT #52

Merged
merged 1 commit into from
Jan 28, 2023
Merged

#51 Private heaps and MVM_EXPORT #52

merged 1 commit into from
Jan 28, 2023

Conversation

coder-mike
Copy link
Owner

No description provided.

@davidchisnall
Copy link
Contributor

Looks great to me, thanks!

Sorry, I missed the notification when you raised this.

@coder-mike coder-mike merged commit 5eb7843 into main Jan 28, 2023
@coder-mike coder-mike deleted the 51-private-heaps branch January 28, 2023 07:26
MVM_EXPORT void mvm_initializeHandle(mvm_VM* vm, mvm_Handle* handle); // Handle must be released by mvm_releaseHandle
MVM_EXPORT void mvm_cloneHandle(mvm_VM* vm, mvm_Handle* target, const mvm_Handle* source); // Target must be released by mvm_releaseHandle
MVM_EXPORT mvm_TeError mvm_releaseHandle(mvm_VM* vm, mvm_Handle* handle);
MVM_EXPORT static inline mvm_Value mvm_handleGet(const mvm_Handle* handle) { return handle->_value; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I spoke too soon. I didn't notice that you'd added the macro on these as well. We don't want it on static inline functions because they exist in the caller's compilation unit, not in the library.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My mistake. Let me know if #55 doesn't fix this.

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.

2 participants