pub const FileDefinition = extern struct file_name: [18]u8An ANSI string that gives the name of the source file. This is padded with nulls if it is less than the maximum length.
pub fn getFileName(self: *const FileDefinition) []const u8922
923
924
925
926
927
928
929
930
931pub const FileDefinition = extern struct {
/// An ANSI string that gives the name of the source file.
/// This is padded with nulls if it is less than the maximum length.
file_name: [18]u8,
pub fn getFileName(self: *const FileDefinition) []const u8 {
const len = std.mem.findScalar(u8, &self.file_name, @as(u8, 0)) orelse self.file_name.len;
return self.file_name[0..len];
}
}