Formatting to be consistent. Make unrolling use macro.

This commit is contained in:
Christoffer Lerno
2026-02-19 18:22:21 +01:00
parent 9efb9b90d1
commit 6b3139940c

View File

@@ -112,7 +112,12 @@ macro bool is_numerical($Type)
fn bool TypeKind.is_int(kind) @inline fn bool TypeKind.is_int(kind) @inline
{ {
return kind == TypeKind.SIGNED_INT || kind == TypeKind.UNSIGNED_INT; return kind == SIGNED_INT || kind == UNSIGNED_INT;
}
macro bool TypeKind.@is_int($kind) @const
{
return $kind == SIGNED_INT ||| $kind == UNSIGNED_INT;
} }
macro bool is_slice_convertable($Type) @deprecated("Use is_slice_convertible") => is_slice_convertible($Type); macro bool is_slice_convertable($Type) @deprecated("Use is_slice_convertible") => is_slice_convertible($Type);