glfw: make init inline

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2021-07-16 16:35:15 -07:00
parent bda78aca74
commit 1cedf40671

View file

@ -38,7 +38,7 @@ pub const version = @import("version.zig");
/// Unicode text input.
///
/// @thread_safety This function must only be called from the main thread.
pub fn init() Error!void {
pub inline fn init() Error!void {
if (c.glfwInit() != c.GLFW_TRUE) {
return try getError();
}