sdl3bind/official/release-3.2.12/api/error.zig

19 lines
483 B
Zig

const std = @import("std");
pub const c = @import("c.zig").c;
pub const unsupported = struct {
pub const SDL_SetError = "varargs function is not representable in Zig";
pub const SDL_SetErrorV = "varargs function is not representable in Zig";
};
pub inline fn outOfMemory() bool {
return @bitCast(c.SDL_OutOfMemory());
}
pub inline fn getError() [*c]const u8 {
return c.SDL_GetError();
}
pub inline fn clearError() bool {
return @bitCast(c.SDL_ClearError());
}