mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 00:52:52 +00:00
Merge c945cd51c6
into b0dcce93f7
This commit is contained in:
commit
6f4798b2b8
@ -3311,7 +3311,7 @@ void do_a_thing(struct Foo *foo) {
|
||||
</p>
|
||||
<p>
|
||||
One benefit to this is that functions which take pointers as arguments can
|
||||
be annotated with the "nonnull" attribute - <code>__attribute__((nonnull))</code> in
|
||||
be annotated with the "nonnull" attribute, which corresponds to the <code>__attribute__((nonnull))</code> in
|
||||
<a href="https://gcc.gnu.org/onlinedocs/gcc-4.0.0/gcc/Function-Attributes.html">GCC</a>.
|
||||
The optimizer can sometimes make better decisions knowing that pointer arguments
|
||||
cannot be null.
|
||||
|
Loading…
Reference in New Issue
Block a user