GWI_OB((t_polar = gwi_mk_type(gwi, "polar", SZ_COMPLEX , NULL)))
GWI_OB((t_vec3 = gwi_mk_type(gwi, "Vec3", SZ_VEC3, NULL)))
GWI_OB((t_vec4 = gwi_mk_type(gwi, "Vec4", SZ_VEC4, NULL)))
+ GWI_BB(gwi_oper_ini(gwi, OP_ANY_TYPE, OP_ANY_TYPE, NULL))
+ GWI_BB(gwi_oper_add(gwi, opck_basic_cast))
+ GWI_BB(gwi_oper_end(gwi, "$", NULL))
GWI_BB(import_object(gwi))
GWI_OB((t_union = gwi_mk_type(gwi, "@Union", SZ_INT, t_object)))
GWI_BB(gwi_class_ini(gwi, t_union, NULL, NULL))
describe_logical(Neq, !=)
static inline m_bool nonnull_check(const Type l, const Type r) {
- return !GET_FLAG(l, nonnull) && GET_FLAG(r, nonnull);
+ return !GET_FLAG(r, nonnull) && GET_FLAG(l, nonnull);
}
static inline Type check_nonnull(const Env env, const Type l, const Type r,
GWI_BB(gwi_oper_add(gwi, at_object))
GWI_BB(gwi_oper_emi(gwi, opem_at_object))
GWI_BB(gwi_oper_end(gwi, "@=>", ObjectAssign))
- GWI_BB(gwi_oper_ini(gwi, OP_ANY_TYPE, OP_ANY_TYPE, NULL))
- GWI_BB(gwi_oper_add(gwi, opck_basic_cast))
- GWI_BB(gwi_oper_end(gwi, "$", NULL))
GWI_BB(gwi_oper_ini(gwi, "Object", "Object", "int"))
GWI_BB(gwi_oper_end(gwi, "==", EqObject))
GWI_BB(gwi_oper_end(gwi, "!=", NeqObject))