Skip to content

Commit 8cbc732

Browse files
committed
Added missing assert in validateProgram
1 parent 9b7a1d8 commit 8cbc732

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/wrapper.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3824,6 +3824,7 @@ pub fn Wrap(comptime bindings: anytype) type {
38243824

38253825
// pub var validateProgram: *const fn (program: Uint) callconv(.c) void = undefined;
38263826
pub fn validateProgram(program: Program) void {
3827+
assert(program != .invalid);
38273828
bindings.validateProgram(@intFromEnum(program));
38283829
}
38293830

0 commit comments

Comments
 (0)