mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Added is_vector macro.
This commit is contained in:
committed by
Christoffer Lerno
parent
72c7da404e
commit
97de44b424
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user