-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Open
Labels
A-FFIArea: Foreign function interface (FFI)Area: Foreign function interface (FFI)C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.F-c_variadic`#![feature(c_variadic)]``#![feature(c_variadic)]`T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Description
Summary
VaList::arg::<bool>() should work.
Description
According to <stdbool.h> false is 0 and true is 1. As long as our encoding of bool is the same, we should allow VaList::arg::<bool>(). Since we take care of types smaller than an int in the codegen, this should work.
Related to: #44930
Metadata
Metadata
Assignees
Labels
A-FFIArea: Foreign function interface (FFI)Area: Foreign function interface (FFI)C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.F-c_variadic`#![feature(c_variadic)]``#![feature(c_variadic)]`T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.