mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 00:36:07 +03:00
16 lines
400 B
Zig
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());
|
|
}
|