feature. See also
. The project being documented here (as the example) is the Zig library itself.
Builder.debugGlobalVar
pub fn debugGlobalVar(
self: *Builder,
name: ?Metadata.String,
linkage_name: ?Metadata.String,
file: ?Metadata,
scope: ?Metadata,
line: u32,
ty: ?Metadata,
variable: Variable.Index,
options: Metadata.GlobalVar.Options,
) Allocator.Error!Metadata
File
Code
pub fn debugGlobalVar(
self: *Builder,
name: ?Metadata.String,
linkage_name: ?Metadata.String,
file: ?Metadata,
scope: ?Metadata,
line: u32,
ty: ?Metadata,
variable: Variable.Index,
options: Metadata.GlobalVar.Options,
) Allocator.Error!Metadata {
try self.ensureUnusedMetadataCapacity(1, Metadata.GlobalVar, 0);
return self.debugGlobalVarAssumeCapacity(
name,
linkage_name,
file,
scope,
line,
ty,
variable,
options,
);
}