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();
|
||||
}
|
||||
|
|
@ -138,7 +138,7 @@ pub fn basicTest() !void {
|
|||
|
||||
test "version" {
|
||||
std.debug.print("\nGLFW version v{}.{}.{}\n", .{ version.major, version.minor, version.revision });
|
||||
std.debug.print("\nstring: {s}\n", .{ getVersionString() });
|
||||
std.debug.print("\nstring: {s}\n", .{getVersionString()});
|
||||
}
|
||||
|
||||
test "basic" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue