mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
Split-up require_results foreign blocks
This commit is contained in:
Vendored
+9
-5
@@ -75,16 +75,20 @@ EndThreadFunction :: proc "c" () -> FunctionPointer {
|
||||
}
|
||||
}
|
||||
|
||||
@(default_calling_convention="c", link_prefix="SDL_")
|
||||
@(default_calling_convention="c", link_prefix="SDL_", require_results)
|
||||
foreign lib {
|
||||
GetThreadName :: proc(thread: ^Thread) -> cstring ---
|
||||
GetCurrentThreadID :: proc() -> ThreadID ---
|
||||
GetThreadID :: proc(thread: ^Thread) -> ThreadID ---
|
||||
SetCurrentThreadPriority :: proc(priority: ThreadPriority) -> bool ---
|
||||
WaitThread :: proc(thread: ^Thread, status: ^c.int) ---
|
||||
GetThreadState :: proc(thread: ^Thread) -> ThreadState ---
|
||||
DetachThread :: proc(thread: ^Thread) ---
|
||||
GetTLS :: proc(id: ^TLSID) -> rawptr ---
|
||||
SetTLS :: proc(id: ^TLSID, value: rawptr, destructor: TLSDestructorCallback) -> bool ---
|
||||
CleanupTLS :: proc() ---
|
||||
}
|
||||
|
||||
@(default_calling_convention="c", link_prefix="SDL_")
|
||||
foreign lib {
|
||||
SetCurrentThreadPriority :: proc(priority: ThreadPriority) -> bool ---
|
||||
WaitThread :: proc(thread: ^Thread, status: ^c.int) ---
|
||||
DetachThread :: proc(thread: ^Thread) ---
|
||||
CleanupTLS :: proc() ---
|
||||
}
|
||||
Reference in New Issue
Block a user