From e4d15208a5c04dec69169ac8b10cfc631bbd4d89 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Mon, 17 Oct 2022 05:10:52 -0700 Subject: [PATCH] glfw: expose error handling functions for rare usages Fixes hexops/mach#586 Signed-off-by: Stephen Gutekanst --- libs/glfw/src/main.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/glfw/src/main.zig b/libs/glfw/src/main.zig index b5daed9e..3e99bd3a 100644 --- a/libs/glfw/src/main.zig +++ b/libs/glfw/src/main.zig @@ -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;