aboutsummaryrefslogtreecommitdiff
path: root/src/Clip.zig
diff options
context:
space:
mode:
authorGrace Yoder <grace_yoder@outlook.com>2026-06-29 09:45:37 -0600
committerGrace Yoder <grace_yoder@outlook.com>2026-06-30 16:33:26 -0600
commit565174c4b8c73e9e28524709060335a0b17ee3fb (patch)
tree4e642c58ef4f4c227b29537be56183c73d9b5179 /src/Clip.zig
parent2f75723e16974bd21762fb64d5f6ce53984b115d (diff)
feat(NSPasteboard): added objective c bridge and build changes
Diffstat (limited to 'src/Clip.zig')
-rw-r--r--src/Clip.zig3
1 files changed, 3 insertions, 0 deletions
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);