static inline void psi_calc_cast(token_t in_type, impl_val *in_val, token_t out_type, impl_val *out_val) { switch (out_type) { $v) : ?> #if HAVE_ case PSI_T_: switch (in_type) { $v_in) : ?> # if HAVE_ case PSI_T_: out_val-> = in_val->; break; # endif default: assert(0); break; } break; #endif default: assert(0); break; } }