aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-06-18 17:09:10 -0400
committerAndrew Kelley <andrew@ziglang.org>2020-06-18 17:09:10 -0400
commit4a387996311a025a021409f08a61bab9e9885987 (patch)
treeea36d6f87fc409b0eebc8f6149f248109b87735d /lib/std/debug
parente54ed9f638c33ec3091d207978ed856d92614caf (diff)
downloadzig-4a387996311a025a021409f08a61bab9e9885987.tar.gz
zig-4a387996311a025a021409f08a61bab9e9885987.zip
make file and fn_name fields of SourceLocation also null-terminated
One of the main motivating use cases for this language feature is tracing/profiling tools, which expect null-terminated strings for these values. Since the data is statically allocated, making them additionally null-terminated comes at no cost. This prevents the requirement of compile-time code to convert to null-termination, which could increase the compilation time of code with tracing enabled. See #2029
Diffstat (limited to 'lib/std/debug')
0 files changed, 0 insertions, 0 deletions