aboutsummaryrefslogtreecommitdiff
path: root/src/compiler.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-07-14 17:17:37 -0700
committerAndrew Kelley <andrew@ziglang.org>2020-07-14 17:19:17 -0700
commiteac628024177434563d348272165d4e3a0a281af (patch)
treea11325a92c9ae3445d7a062b989704ec2a5dc2cb /src/compiler.cpp
parenta7c3cec65f1639195e787b98900c3f126953f880 (diff)
downloadzig-eac628024177434563d348272165d4e3a0a281af.tar.gz
zig-eac628024177434563d348272165d4e3a0a281af.zip
add std.meta.TrailerFlags API
This is useful for saving memory when allocating an object that has many optional components. The optional objects are allocated sequentially in memory, and a single integer is used to represent each optional object and whether it is present based on each corresponding bit.
Diffstat (limited to 'src/compiler.cpp')
0 files changed, 0 insertions, 0 deletions