Zig 0.17.0-dev (Split by item) This is an example of documentation generated by
ZigDoc , an alternative to Zig's built-in
Auto Doc feature. See also
examples in other modes/formats . The project being documented here (as the example) is the Zig standard library.
std › debug › Dwarf › Unwind › VirtualMachine › populateCieLastRow Public Function populateCieLastRow Doc Source Public Function std.debug.Dwarf.Unwind.VirtualMachine.populateCieLastRow
pub fn populateCieLastRow (
gpa : Allocator ,
cie : *Unwind .CommonInformationEntry ,
addr_size_bytes : u8 ,
endian : std .builtin .Endian ,
) !void Params File debug/Dwarf/Unwind/VirtualMachine.zig: 102
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127 pub fn populateCieLastRow (
gpa : Allocator ,
cie : *Unwind .CommonInformationEntry ,
addr_size_bytes : u8 ,
endian : std .builtin .Endian ,
) !void {
assert (cie .last_row == null );
var vm : VirtualMachine = .{};
defer vm .deinit (gpa );
try vm .evalInstructions (
gpa ,
cie ,
std .math .maxInt (u64 ),
cie .initial_instructions ,
addr_size_bytes ,
endian ,
);
cie .last_row = .{
.offset = vm .current_row .offset ,
.cfa = vm .current_row .cfa ,
.cols = try gpa .dupe (Column , vm .rowColumns (&vm .current_row )),
};
}