mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-19 22:10:29 +00:00
macos: add necessary functions for variation axes querying
This commit is contained in:
@@ -24,7 +24,7 @@ pub const Array = opaque {
|
||||
/// constness so that further API calls work correctly. The Foundation
|
||||
/// API doesn't properly mark things const/non-const.
|
||||
pub fn getValueAtIndex(self: *Array, comptime T: type, idx: usize) *T {
|
||||
return @ptrCast(CFArrayGetValueAtIndex(self, idx));
|
||||
return @ptrCast(@alignCast(CFArrayGetValueAtIndex(self, idx)));
|
||||
}
|
||||
|
||||
pub extern "c" fn CFArrayCreate(
|
||||
|
||||
Reference in New Issue
Block a user