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

支持裸fp #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

支持裸fp #59

wants to merge 1 commit into from

Conversation

dreamlike-ocean
Copy link
Owner

某些情况下 我们并不需要主动lookup对应的符号而是需要手动传入
比如说 syscall 场景
该pr支持了 这种函数调用

int return1(@NativeFunctionPointer MemorySegment fp);
#[no_mangle]
pub unsafe extern "C" fn return1() -> i32 {
    return 1;
}

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.

1 participant