add direct typed array type test macro

This commit is contained in:
dzaima 2023-06-23 11:54:21 +03:00
parent 4dbe72ae03
commit 5f43bf16b3

View File

@ -283,6 +283,7 @@ enum Type {
t_COUNT
};
#define IS_ANY_ARR(T) ((T)>=t_hslice & (T)<=t_bitarr)
#define IS_DIRECT_TYARR(T) (((T)>=t_i8arr) & ((T)<=t_bitarr))
#define IS_SLICE(T) ((T)<=t_f64slice)
#define TO_SLICE(T) ((T) + t_hslice - t_harr) // Assumes T!=t_bitarr