commit 22925636f7afc0f334f1d44257c007a1d2ccd63f (tree)
parent b9fd0eeca6ba45058ed67fc211bb50a93c971a28
Author: Andrew Kelley <andrew@ziglang.org>
Date: Sun, 4 Aug 2024 15:26:18 -0700
std.debug.Coverage: use extern structs
helps the serialization use case
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/std/debug/Coverage.zig b/lib/std/debug/Coverage.zig
@@ -65,7 +65,7 @@ pub const String = enum(u32) {
};
};
-pub const SourceLocation = struct {
+pub const SourceLocation = extern struct {
file: File.Index,
line: u32,
column: u32,
@@ -77,7 +77,7 @@ pub const SourceLocation = struct {
};
};
-pub const File = struct {
+pub const File = extern struct {
directory_index: u32,
basename: String,