Added is_vector macro.

This commit is contained in:
Dmitry Atamanov
2022-09-05 17:42:51 +05:00
committed by Christoffer Lerno
parent 72c7da404e
commit 97de44b424

View File

@@ -134,6 +134,11 @@ macro bool is_intlike($Type)
$endswitch;
}
macro bool is_vector($Type)
{
return $Type.kind == TypeKind.VECTOR;
}
macro bool is_same($TypeA, $TypeB)
{
return $TypeA.typeid == $TypeB.typeid;