This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
pub const ContextDescriptor = struct { | |
name: []const u8, | |
type: type, | |
}; | |
/// Provide a tuple of structs of type like ContextDescriptor | |
pub fn MixContexts(comptime context_tuple: anytype) type { | |
var fields: [context_tuple.len]std.builtin.Type.StructField = undefined; |