We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b412897 commit e205a2eCopy full SHA for e205a2e
1 file changed
objc-sys/src/types.rs
@@ -55,10 +55,16 @@ mod inner {
55
pub type BOOL = u8;
56
}
57
58
-// ObjFW???
+// ObjFW
59
#[cfg(objfw)]
60
mod inner {
61
- pub type BOOL = todo!();
+ // Defined in ObjFW-RT.h
62
+ // C: signed char
63
+ // This has changed since v0.90, but we don't support that yet.
64
+ pub type BOOL = i8;
65
+
66
+ // Note that ObjFW uses `bool` in return types, but that doesn't change
67
+ // the ABI, so we'll just use `BOOL` there for ease of use.
68
69
70
/// The Objective-C `BOOL` type.
0 commit comments