glfw: add 'assertInitialized'
This commit is contained in:
parent
c95bc37306
commit
a465d2e021
1 changed files with 1 additions and 0 deletions
|
|
@ -2191,6 +2191,7 @@ pub inline fn setDropCallback(self: Window, callback: ?fn (window: Window, paths
|
||||||
///
|
///
|
||||||
/// see also: window_hints, glfw.Window.defaultHints
|
/// see also: window_hints, glfw.Window.defaultHints
|
||||||
inline fn hint(h: Hint, value: anytype) Error!void {
|
inline fn hint(h: Hint, value: anytype) Error!void {
|
||||||
|
internal_debug.assertInitialized();
|
||||||
const value_type = @TypeOf(value);
|
const value_type = @TypeOf(value);
|
||||||
const value_type_info: std.builtin.TypeInfo = @typeInfo(value_type);
|
const value_type_info: std.builtin.TypeInfo = @typeInfo(value_type);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue