| 1 | const std = @import("std"); |
| 2 | const string = []const u8; |
| 3 | const extras = @import("./lib.zig"); |
| 4 | const root = @import("root"); |
| 5 | |
| 6 | pub fn globalOption(comptime name: []const u8, comptime T: type) ?T { |
| 7 | if (!@hasDecl(root, name)) return null; |
| 8 | return @as(T, @field(root, name)); |
| 9 | } |