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 library itself.
Zig › std/ › Build/ › Serialize.zig › addRcSourceFile
addRcSourceFile
Serialize.addRcSourceFile
fn addRcSourceFile (s : *Serialize , rsf : *const std .Build .Module .RcSourceFile ) !Configuration .RcSourceFile .Index
File
Code
fn addRcSourceFile (s : *Serialize , rsf : *const std .Build .Module .RcSourceFile ) !Configuration .RcSourceFile .Index {
const wc = s .wc ;
const include_paths = try initLazyPathList (s , rsf .include_paths );
const args = try initStringList (s , rsf .flags );
return try wc .addExtra (Configuration .RcSourceFile , .{
.flags = .{
.args_len = @intCast (args .len ),
.include_paths = include_paths .len != 0 ,
},
.file = try addLazyPath (s , rsf .file ),
.include_paths = .{ .slice = include_paths },
.args = .{ .slice = args },
});
}