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.zig › validateConfigureDependency
validateConfigureDependency
Build.validateConfigureDependency
fn validateConfigureDependency (lazy_path : LazyPath ) void
File
Code
fn validateConfigureDependency (lazy_path : LazyPath ) void {
switch (lazy_path ) {
.src_path , .cwd_relative , .dependency => {},
.generated => @panic ("configure phase cannot depend on files generated during make phase" ),
.relative => |relative | switch (relative .base ) {
.cwd , .build_root , .local_cache , .global_cache , .zig_exe , .zig_lib => {},
.install_prefix ,
.install_lib ,
.install_bin ,
.install_include ,
=> @panic ("configure phase cannot depend on files installed during make phase" ),
},
}
}