Fix minor regressions introduced in 3e79a12
3e79a12f3d
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
2e9347399d
commit
0cdac6c68a
3 changed files with 3 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue