ghostty/pkg/fontconfig/range.zig
Mitchell Hashimoto 314f9287b1 Update Zig (#164)
* update zig

* pkg/fontconfig: clean up @as

* pkg/freetype,harfbuzz: clean up @as

* pkg/imgui: clean up @as

* pkg/macos: clean up @as

* pkg/pixman,utf8proc: clean up @as

* clean up @as

* lots more @as cleanup

* undo flatpak changes

* clean up @as
2023-06-30 12:15:31 -07:00

14 lines
301 B
Zig

const std = @import("std");
const assert = std.debug.assert;
const c = @import("c.zig");
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);
}
};