make example compile

This commit is contained in:
Colin Davidson
2024-07-28 01:29:33 -07:00
parent 1d598f8287
commit 27f75c40ab

View File

@@ -1,4 +1,5 @@
/*
import "base:runtime"
import "core:prof/spall"
import "core:sync"
@@ -14,7 +15,7 @@
defer spall.context_destroy(&spall_ctx)
buffer_backing := make([]u8, spall.BUFFER_DEFAULT_SIZE)
spall_buffer = spall.buffer_create(buffer_backing, sync.current_thread_id)
spall_buffer = spall.buffer_create(buffer_backing, u32(sync.current_thread_id()))
defer spall.buffer_destroy(&spall_ctx, &spall_buffer)
spall.SCOPED_EVENT(&spall_ctx, &spall_buffer, #procedure)