Compound arrays

This commit is contained in:
Krzosa Karol
2022-06-11 09:54:35 +02:00
parent bcddf7f721
commit b76b9c605a
8 changed files with 236 additions and 156 deletions

View File

@@ -218,7 +218,7 @@ constexpr S128 U8_max() {return {0, U8MAX};}
constexpr S128 U8_min() {return {};}
function B32
is_out_of_bounds(S128 value, Ast_Resolved_Type *type){
is_out_of_bounds(S128 value, Ast_Type *type){
#define BOUNDS_CASE(T) case TYPE_##T: return (value < T##_min()) || (value > T##_max())
switch(type->kind){
BOUNDS_CASE(S8);