sdl3bind/castholm/v0.2.2-3.2.12/api/error.zig

15 lines
272 B
Zig

const std = @import("std");
pub const c = @import("c.zig").c;
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();
}