3 ms·
I've been using this helper: https://github.com/judofyr/zini/blob/ea91f645b7dc061adcedc91eaf252397b75d2323/src/utils.zig#L43-L55 https://github.com/judofyr/zini
by judofyr 3y ago
I've been using this helper: https://github.com/judofyr/zini/blob/ea91f645b7dc061adcedc91eaf252397b75d2323/src/utils.zig#L43-L55 https://github.com/judofyr/zini/blob/ea91f645b7dc061adcedc91.... It starts by making the first allocation fail, then the second, then the third, and so on. As long as it returns OutOfMemory (without leaking memory) then everything is fine.