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

Missing extern "C" for ffi functions #4

Open
bjorn3 opened this issue Nov 6, 2023 · 0 comments
Open

Missing extern "C" for ffi functions #4

bjorn3 opened this issue Nov 6, 2023 · 0 comments

Comments

@bjorn3
Copy link

bjorn3 commented Nov 6, 2023

By default rust functions use the rust calling convention which is unstable and may not match the C calling convention that is likely expected by the Pharo VM. You need to use extern "C" fn to use the C calling convention.

#[no_mangle]
pub fn is_virtual_machine() {
and elsewhere.

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

No branches or pull requests

1 participant