mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-04-20 00:18:53 +03:00
14 lines
303 B
Zig
14 lines
303 B
Zig
const std = @import("std");
|
|
const assert = std.debug.assert;
|
|
const c = @import("c.zig").c;
|
|
|
|
pub const Range = opaque {
|
|
pub fn destroy(self: *Range) void {
|
|
c.FcRangeDestroy(self.cval());
|
|
}
|
|
|
|
pub inline fn cval(self: *Range) *c.struct__FcRange {
|
|
return @ptrCast(self);
|
|
}
|
|
};
|