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

feat(ext/ffi): Support bool FFI type #15754

Merged

Conversation

aapoalas
Copy link
Collaborator

@aapoalas aapoalas commented Sep 3, 2022

Setup support for bool types in FFI. This enables both slow and fast API calls using booleans, since Fast API supports boolean to bool bindings.

Support for bools is also added for statics and Deno.UnsafePointerView.

Tests also done and tested, so this should be pretty good as-is.

Dynasmrt Fast API

Adapting Dynasmrt PR to support booleans should be as easy as marking NativeType::Bool to take the same path as NativeType::U8.

Copy link
Member

@littledivy littledivy left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks

@littledivy littledivy merged commit 16dbf4a into denoland:main Sep 5, 2022
bartlomieju pushed a commit to bartlomieju/deno that referenced this pull request Sep 5, 2022
kt3k pushed a commit that referenced this pull request Sep 9, 2022
@kt3k kt3k mentioned this pull request Sep 9, 2022
4 tasks
@aapoalas aapoalas deleted the feat/ext-ffi/add-bool-ffi-support branch September 12, 2022 11:30
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