mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
Formatting to be consistent. Make unrolling use macro.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user