Skip to content

Instantly share code, notes, and snippets.

View saenai255's full-sized avatar
πŸˆβ€β¬›
Learning Odin lang

Paul Cosma saenai255

πŸˆβ€β¬›
Learning Odin lang
View GitHub Profile
@saenai255
saenai255 / tracking_alloc_example.odin
Created March 5, 2025 14:08 — forked from karl-zylinski/tracking_alloc_example.odin
Example of how to setup tracking allocator
// from https://odin-lang.org/docs/overview/#when-statements, see end of that section
package main
import "core:fmt"
import "core:mem"
main :: proc() {
when ODIN_DEBUG {
track: mem.Tracking_Allocator