feature. See also
. The project being documented here (as the example) is the Zig library itself.
Builder.debugSubprogramAssumeCapacity
fn debugSubprogramAssumeCapacity(
self: *Builder,
file: ?Metadata,
name: ?Metadata.String,
linkage_name: ?Metadata.String,
line: u32,
scope_line: u32,
ty: ?Metadata,
options: Metadata.Subprogram.Options,
compile_unit: ?Metadata,
) Metadata
File
Code
fn debugSubprogramAssumeCapacity(
self: *Builder,
file: ?Metadata,
name: ?Metadata.String,
linkage_name: ?Metadata.String,
line: u32,
scope_line: u32,
ty: ?Metadata,
options: Metadata.Subprogram.Options,
compile_unit: ?Metadata,
) Metadata {
assert(!self.strip);
const tag: Metadata.Tag = @fromBackingInt(@intCast(@backingInt(Metadata.Tag.subprogram) +
@as(u3, @truncate(@as(u32, @bitCast(options.sp_flags)) >> 2))));
return self.metadataDistinctAssumeCapacity(tag, Metadata.Subprogram{
.file = .wrap(file),
.name = .wrap(name),
.linkage_name = .wrap(linkage_name),
.line = line,
.scope_line = scope_line,
.ty = .wrap(ty),
.di_flags = options.di_flags,
.compile_unit = .wrap(compile_unit),
});
}