Skip to content

Commit 9cd96e4

Browse files
authored
quirks: remove type signature for inlineAssert (#9843)
Functions with different calling conventions are not compatible with each other Fixes all release builds + CI
2 parents 0bbd7c8 + 2ac9e03 commit 9cd96e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/quirks.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub fn disableDefaultFontFeatures(face: *const font.Face) bool {
4242
/// is negligible, but we have some asserts inside tight loops and hotpaths
4343
/// that cause significant overhead (as much as 15-20%) when they don't get
4444
/// optimized out.
45-
pub const inlineAssert: fn (bool) void = switch (builtin.mode) {
45+
pub const inlineAssert = switch (builtin.mode) {
4646
// In debug builds we just use std.debug.assert because this
4747
// fixes up stack traces. `inline` causes broken stack traces. This
4848
// is probably a Zig compiler bug but until it is fixed we have to

0 commit comments

Comments
 (0)