MCPcopy Create free account
hub / github.com/Recordscript/recordscript / cfbool

Function cfbool

libs/scrap/src/quartz/ffi.rs:38–46  ·  view source on GitHub ↗
(x: bool)

Source from the content-addressed store, hash-verified

36pub const SURFACE_LOCK_AVOID_SYNC: u32 = 0x0000_0002;
37
38pub fn cfbool(x: bool) -> CFBooleanRef {
39 unsafe {
40 if x {
41 kCFBooleanTrue
42 } else {
43 kCFBooleanFalse
44 }
45 }
46}
47
48#[repr(i32)]
49#[derive(PartialEq, Eq, Debug, Clone, Copy)]

Callers 1

buildMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected