Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const std = @import("std");
- const namespace = struct {
- const hello = struct {};
- var world: i32 = undefined;
- };
- pub fn main() anyerror!void {
- inline for(std.meta.definitions(namespace)) |def| {
- std.debug.warn("{}\n", @typeName(def.data.Var));
- std.debug.warn("{}\n", def.name);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement