Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

stack_direction

On operating systems that don't immediately map in the whole stack, we need to be careful to not hint into the pages after the stack guard gap, which the stack will expand into. The easiest way to avoid that is to hint in the same direction as stack growth.

PageAllocator.stack_direction
const stack_direction = builtin.target.stackGrowth()

File

lib/std/heap/PageAllocator.zig:35

Code

const stack_direction = builtin.target.stackGrowth()