ghostty/pkg/sentry/main.zig
2024-08-28 21:43:17 -07:00

16 lines
400 B
Zig

pub const c = @import("c.zig").c;
pub const Level = @import("level.zig").Level;
pub const Value = @import("value.zig").Value;
pub const UUID = @import("uuid.zig").UUID;
pub fn captureEvent(value: Value) ?UUID {
const uuid: UUID = .{ .value = c.sentry_capture_event(value.value) };
if (uuid.isNil()) return null;
return uuid;
}
test {
@import("std").testing.refAllDecls(@This());
}