aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug/SelfInfo.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2025-09-08 14:31:45 +0100
committermlugg <mlugg@mlugg.co.uk>2025-09-30 13:44:51 +0100
commit3a561da38d42ba331eb67bdb7d86d4a3e9b74533 (patch)
treec24294aa672db7df3257b702a7ead5d3c06d07f3 /lib/std/debug/SelfInfo.zig
parent0c7b2a7bd5433b7e7bcde3bb49d48226dc2adef9 (diff)
downloadzig-3a561da38d42ba331eb67bdb7d86d4a3e9b74533.tar.gz
zig-3a561da38d42ba331eb67bdb7d86d4a3e9b74533.zip
std: doc comments and tweaks
Diffstat (limited to 'lib/std/debug/SelfInfo.zig')
-rw-r--r--lib/std/debug/SelfInfo.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/std/debug/SelfInfo.zig b/lib/std/debug/SelfInfo.zig
index f1832f4902..df5a9e7ad8 100644
--- a/lib/std/debug/SelfInfo.zig
+++ b/lib/std/debug/SelfInfo.zig
@@ -124,6 +124,7 @@ pub fn getModuleNameForAddress(self: *SelfInfo, gpa: Allocator, address: usize)
/// ) SelfInfo.Error!usize;
/// ```
const Module: type = Module: {
+ // Allow overriding the target-specific `SelfInfo` implementation by exposing `root.debug.Module`.
if (@hasDecl(root, "debug") and @hasDecl(root.debug, "Module")) {
break :Module root.debug.Module;
}