Added pow macros to math module.

This commit is contained in:
Dmitry Atamanov
2022-10-31 17:00:39 +05:00
committed by Christoffer Lerno
parent b086c85d9f
commit e070bf22ee
2 changed files with 19 additions and 4 deletions

View File

@@ -123,6 +123,8 @@ macro bool is_subarray_convertable($Type)
$endswitch;
}
macro bool is_int($Type) = $Type.kindof == TypeKind.SIGNED_INT || $Type.kindof == TypeKind.UNSIGNED_INT;
macro bool is_intlike($Type)
{
$switch ($Type.kindof):