Function validationWrap [src]

Wraps an allocator with basic validation checks. Asserts that allocation sizes are greater than zero and returned pointers have correct alignment.

Prototype

pub fn validationWrap(allocator: anytype) ValidationAllocator(@TypeOf(allocator))

Source

pub fn validationWrap(allocator: anytype) ValidationAllocator(@TypeOf(allocator)) { return ValidationAllocator(@TypeOf(allocator)).init(allocator); }