mem: typed allocation helpers + drop bare malloc/free (Phase 2.2); resolve 0119 as |>-contract clarification
This commit is contained in:
@@ -16,7 +16,7 @@ Holder :: struct {
|
||||
}
|
||||
|
||||
main :: () -> s32 {
|
||||
h : *Holder = xx malloc(size_of(Holder));
|
||||
h : *Holder = xx libc_malloc(size_of(Holder));
|
||||
h.n = 7;
|
||||
|
||||
print("plain: {}\n", h.plain());
|
||||
|
||||
Reference in New Issue
Block a user