Fix minor regressions introduced in 3e79a12

3e79a12f3d

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-02-08 20:21:56 -07:00
parent 2e9347399d
commit 0cdac6c68a
3 changed files with 3 additions and 3 deletions

View file

@ -394,7 +394,7 @@ pub inline fn getAll(allocator: mem.Allocator) mem.Allocator.Error![]Monitor {
Error.NotInitialized => unreachable,
else => unreachable,
};
return &.{};
unreachable;
}
/// Returns the primary monitor.

View file

@ -1304,7 +1304,7 @@ pub inline fn getAttrib(self: Window, attrib: Attrib) error{PlatformError}!i32 {
Error.PlatformError => |e| e,
else => unreachable,
};
unreachable;
return v;
}
/// Sets an attribute of the specified window.

View file

@ -109,7 +109,7 @@ pub inline fn getTimerValue() u64 {
pub inline fn getTimerFrequency() u64 {
internal_debug.assertInitialized();
const frequency = c.glfwGetTimerFrequency();
if (frequency != 0) frequency;
if (frequency != 0) return frequency;
getError() catch |err| return switch (err) {
Error.NotInitialized => unreachable,
else => unreachable,