-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
calling convention for C99 bool? #6529
Comments
I think we should remove |
|
Not sure if this is relevant here, but in my case I'm trying to call into a C++ function with a bool argument. From what I can tell, the size of C99 bool does not necessarily equal a C++ bool, and the behavior of |
The difference between C99 and C++ bool makes me think we should maybe not have this. |
|
Are there compilers/platforms (C++/C11) where |
According to this (p. 6) it is 2 for 16bit Microsoft, and according to msdn it was 4 in Visual C++ 4.2. |
VC++ 4.2 is, what, 17 years old? |
:-) Ok I provoked this answer. My impression was that the Julia FFI makes certain assumptions anyway (e.g. |
I don't know what the calling convention is for C99 bool, so we'll have to deal with this later.
Sorry to necromance this, but I am working on wrapping a C library which uses Although I understand that a lot of C codes hack their way around |
Whereas it is mentioned in the documentation. I'm not sure whether this is a documentation bug or if Cbool is supposed to be defined. If the former, then what is the recommended way to get the implementation specific size of Bool?
The text was updated successfully, but these errors were encountered: