mirror of
https://github.com/odin-lang/Odin.git
synced 2026-08-02 12:18:55 +00:00
nil as default thread arg
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user