feature. See also
. The project being documented here (as the example) is the Zig library itself.
Builder.debugSubprogram
pub fn debugSubprogram(
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,
) Allocator.Error!Metadata
File
Code
pub fn debugSubprogram(
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,
) Allocator.Error!Metadata {
try self.ensureUnusedMetadataCapacity(1, Metadata.Subprogram, 0);
return self.debugSubprogramAssumeCapacity(
file,
name,
linkage_name,
line,
scope_line,
ty,
options,
compile_unit,
);
}