const std = @import("std"); pub const c = @import("c.zig").c; pub inline fn setError(fmt: [*c]const u8, ...) bool { return c.SDL_SetError( fmt, ); } pub inline fn setErrorV(fmt: [*c]const u8, ap: std.builtin.VaList) bool { return c.SDL_SetErrorV(fmt, ap); } pub inline fn outOfMemory() bool { return c.SDL_OutOfMemory(); } pub inline fn getError() [*c]const u8 { return c.SDL_GetError(); } pub inline fn clearError() bool { return c.SDL_ClearError(); }