Skip to content

Instantly share code, notes, and snippets.

View janvhs's full-sized avatar
🌸
Wie ein Roboter von 1984

Jan Fooken janvhs

🌸
Wie ein Roboter von 1984
View GitHub Profile
@karl-zylinski
karl-zylinski / tracking_alloc_example.odin
Created March 3, 2024 20:26
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