reorganized directory

This commit is contained in:
Alessandro Mauri 2025-06-09 12:25:48 +02:00
parent 9d507e38cb
commit 076355e2d1
35 changed files with 0 additions and 0 deletions

11
sdl3_error.c3i Normal file
View file

@ -0,0 +1,11 @@
module sdl3::sdl;
extern fn bool set_error(ZString fmt, ...) @extern("SDL_SetError");
// extern fn bool set_error_v(SDL_PRINTF_FORMAT_STRING ZString fmt, va_list ap) SDL_PRINTF_VARARG_FUNCV(1) @extern("SDL_SetErrorV");
extern fn bool out_of_memory() @extern("SDL_OutOfMemory");
extern fn ZString get_error() @extern("SDL_GetError");
extern fn bool clear_error() @extern("SDL_ClearError");
macro unsupported() => set_error("That operation is not supported");
macro invalid_param_error(param) => set_error("Parameter '%s' is invalid", param);