From 0b5d3b0dd849450f800995fa5c7d2ac0f77ae9f2 Mon Sep 17 00:00:00 2001 From: Wachiraphol Yingamphol Date: Mon, 6 Apr 2026 10:01:34 +0700 Subject: [PATCH] nil as default thread arg --- core/thread/thread.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/thread/thread.odin b/core/thread/thread.odin index e5b4908e7..a81fb3fba 100644 --- a/core/thread/thread.odin +++ b/core/thread/thread.odin @@ -176,7 +176,7 @@ OS level errors are silently ignored. allocates memory for the returned string using provided allocator. */ -get_name :: proc(thread: ^Thread, allocator := context.temp_allocator, loc := #caller_location) -> (string, runtime.Allocator_Error) { +get_name :: proc(thread: ^Thread = nil, allocator := context.temp_allocator, loc := #caller_location) -> (string, runtime.Allocator_Error) { return _get_name(thread, allocator, loc) }