glfw: workaround self-hosted compiler bug
Helps hexops/mach#581 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
e0e0a6d0bb
commit
03590dede5
1 changed files with 2 additions and 1 deletions
|
|
@ -699,7 +699,8 @@ pub const SizeOptional = struct {
|
|||
/// @thread_safety This function must only be called from the main thread.
|
||||
///
|
||||
/// see also: window_sizelimits, glfw.Window.setAspectRatio
|
||||
pub inline fn setSizeLimits(self: Window, min: SizeOptional, max: SizeOptional) error{PlatformError}!void {
|
||||
// TODO(self-hosted): make inline fn again, once https://github.com/ziglang/zig/issues/13164 is fixed.
|
||||
pub fn setSizeLimits(self: Window, min: SizeOptional, max: SizeOptional) error{PlatformError}!void {
|
||||
internal_debug.assertInitialized();
|
||||
|
||||
if (min.width != null and max.width != null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue