-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcairo.zig
More file actions
23 lines (21 loc) · 712 Bytes
/
cairo.zig
File metadata and controls
23 lines (21 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pub const Context = @import("cairo/Context.zig").Context;
pub const ImageSurface = @import("cairo/ImageSurface.zig").ImageSurface;
pub const Pattern = @import("cairo/Pattern.zig").Pattern;
pub const Surface = @import("cairo/Surface.zig").Surface;
pub usingnamespace @import("cairo/enums.zig");
fn refAllDeclsRecursive(comptime T: type) void {
comptime {
for (@import("std").meta.declarations(T)) |decl| {
if (decl.is_pub) {
switch (decl.data) {
.Type => |T2| refAllDeclsRecursive(T2),
else => _ = decl,
}
}
}
}
}
test {
@setEvalBranchQuota(100000);
refAllDeclsRecursive(@This());
}