mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
Fix of ternary / elvis where legs are bool or optional.
This commit is contained in:
committed by
Christoffer Lerno
parent
b1ed066e55
commit
76ee384a4c
16
lib/std/os/macos/core_foundation.c3
Normal file
16
lib/std/os/macos/core_foundation.c3
Normal file
@@ -0,0 +1,16 @@
|
||||
module std::os::macos::cf;
|
||||
|
||||
$if (env::OS_TYPE == OsType.MACOSX):
|
||||
|
||||
define CFTypeRef = distinct void*;
|
||||
define CFIndex = isz;
|
||||
struct CFRange
|
||||
{
|
||||
CFIndex location;
|
||||
CFIndex length;
|
||||
}
|
||||
|
||||
extern fn CFTypeRef _macos_CFRetain(CFTypeRef cf) @extname("CFRetain");
|
||||
extern fn void _macos_CFRelease(CFTypeRef cf) @extname("CFRelease");
|
||||
|
||||
$endif;
|
||||
Reference in New Issue
Block a user