mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
pkg/macos: expose carbon API
This commit is contained in:
5
pkg/macos/carbon.zig
Normal file
5
pkg/macos/carbon.zig
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
pub const c = @import("carbon/c.zig").c;
|
||||||
|
|
||||||
|
test {
|
||||||
|
@import("std").testing.refAllDecls(@This());
|
||||||
|
}
|
3
pkg/macos/carbon/c.zig
Normal file
3
pkg/macos/carbon/c.zig
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
pub const c = @cImport({
|
||||||
|
@cInclude("Carbon/Carbon.h");
|
||||||
|
});
|
@ -1,3 +1,4 @@
|
|||||||
|
pub const carbon = @import("carbon.zig");
|
||||||
pub const foundation = @import("foundation.zig");
|
pub const foundation = @import("foundation.zig");
|
||||||
pub const animation = @import("animation.zig");
|
pub const animation = @import("animation.zig");
|
||||||
pub const dispatch = @import("dispatch.zig");
|
pub const dispatch = @import("dispatch.zig");
|
||||||
|
Reference in New Issue
Block a user