mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
make_builder function now properly uses given allocator
This commit is contained in:
@@ -9,7 +9,7 @@ Builder :: struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
make_builder :: proc(allocator := context.allocator) -> Builder {
|
make_builder :: proc(allocator := context.allocator) -> Builder {
|
||||||
return Builder{make([dynamic]byte)};
|
return Builder{make([dynamic]byte, allocator)};
|
||||||
}
|
}
|
||||||
|
|
||||||
destroy_builder :: proc(b: ^Builder) {
|
destroy_builder :: proc(b: ^Builder) {
|
||||||
|
|||||||
Reference in New Issue
Block a user