diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2022-08-30 16:35:18 +0200 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2022-08-30 16:35:18 +0200 |
| commit | 803fd8f037277b9242a3f10cd5d82ca754169735 (patch) | |
| tree | 457d80530408e501b42d67b7ff46187ceb451e19 /src/llvm_backend_expr.cpp | |
| parent | 67bdb5b1a33da122542afeeee38b4687c656e38c (diff) | |
Wrap CMark allocator as Odin allocator
```odin
// Smaller allocation to larger allocation resize
{
// Allocated on CMark's allocator
foo := make([dynamic]int, 13)
for i in 0..<13 {
foo[i] = i
}
fmt.println("Before resize:", foo)
resize(&foo, 42)
fmt.println("After resize:", foo)
delete(foo)
}
```
Diffstat (limited to 'src/llvm_backend_expr.cpp')
0 files changed, 0 insertions, 0 deletions