| ... | @@ -3,6 +3,8 @@ const assert = debug.assert; | ... | @@ -3,6 +3,8 @@ const assert = debug.assert; |
| 3 | const math = @import("math/index.zig"); | 3 | const math = @import("math/index.zig"); |
| 4 | const builtin = @import("builtin"); | 4 | const builtin = @import("builtin"); |
| 5 | | 5 | |
| | 6 | error OutOfMemory; |
| | 7 | |
| 6 | pub const Allocator = struct { | 8 | pub const Allocator = struct { |
| 7 | /// Allocate byte_count bytes and return them in a slice, with the | 9 | /// Allocate byte_count bytes and return them in a slice, with the |
| 8 | /// slice's pointer aligned at least to alignment bytes. | 10 | /// slice's pointer aligned at least to alignment bytes. |