pub fn addImport(m: *Module, name: []const u8, module: *Module) void
Adds an existing module to be used with @import.
@import
m: *Module
name: []const u8
module: *Module
303 304 305 306 307
pub fn addImport(m: *Module, name: []const u8, module: *Module) void { const graph = m.owner.graph; const arena = graph.arena; m.import_table.put(arena, graph.dupeString(name), module) catch @panic("OOM"); }
Adds an existing module to be used with
@import.