glfw: make init inline
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
bda78aca74
commit
1cedf40671
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue