From 565174c4b8c73e9e28524709060335a0b17ee3fb Mon Sep 17 00:00:00 2001 From: Grace Yoder Date: Mon, 29 Jun 2026 09:45:37 -0600 Subject: feat(NSPasteboard): added objective c bridge and build changes --- src/Clip.zig | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Clip.zig') diff --git a/src/Clip.zig b/src/Clip.zig index 8d264c8..1adeeb0 100644 --- a/src/Clip.zig +++ b/src/Clip.zig @@ -1,4 +1,5 @@ pub const OSC52 = @import("Clip/OSC52.zig"); +// pub const PBCopy = if (@import("builtin").os.tag == .macos) @import("Clip/OSC52.zig") else null; // I am not sure if this is super idiomatic Zig or if this is bad practice, but // by ensuring that all Clip backends implement the same methods, we are able @@ -15,6 +16,8 @@ fn assertFn(comptime T: type, comptime name: []const u8, comptime Sig: type) voi } test { + _ = @import("Clip/NSPasteBoard.zig"); + inline for (@typeInfo(@This()).@"struct".decls) |decl| { // Only grab types of structs const T = @field(@This(), decl.name); -- cgit v1.3.1