glfw: expose error handling functions for rare usages

Fixes hexops/mach#586

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-10-17 05:10:52 -07:00
parent b803782349
commit aa911cfd78

View file

@ -8,7 +8,10 @@ const key = @import("key.zig");
/// Possible value for various window hints, etc.
pub const dont_care = c.GLFW_DONT_CARE;
const errors = @import("errors.zig");
/// Most users should not access the error functions in this namespace, but in some rare cases they
/// may be useful.
pub const errors = @import("errors.zig");
const getError = errors.getError;
pub const setErrorCallback = errors.setErrorCallback;
pub const Error = errors.Error;