blob: 896894957562723dc82b27c714ff4f31244e5b5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package sdl3
import "core:c"
@(default_calling_convention="c", link_prefix="SDL_")
foreign lib {
SetError :: proc(fmt: cstring, #c_vararg args: ..any) -> bool ---
SetErrorV :: proc(fmt: cstring, ap: c.va_list) -> bool ---
@(require_results)
OutOfMemory :: proc() -> bool ---
@(require_results)
GetError :: proc() -> cstring ---
ClearError :: proc() -> bool ---
}
Unsupported :: proc "c" () -> bool { return SetError("That operation is not supported") }
InvalidParamError :: proc "c" (param: cstring) -> bool { return SetError("Parameter '%s' is invalid", param) }
|