| 351 | return bv_variable_create_void(); |
| 352 | } |
| 353 | bv_variable lib_common_vec_operator_equal(bv_program* prog, bv_object* me, u8 count, bv_variable* args) |
| 354 | { |
| 355 | bv_variable ret = bv_variable_create_uchar(0); |
| 356 | |
| 357 | if (count == 1) { |
| 358 | // vec == vec |
| 359 | if (args[0].type == bv_type_object) { |
| 360 | bv_object* vec = bv_variable_get_object(args[0]); |
| 361 | if (vec != nullptr) { |
| 362 | bv_variable_set_uchar(&ret, 1); |
| 363 | for (u16 i = 0; i < me->type->props.name_count; i++) { |
| 364 | u8 eq = bv_variable_op_equal(prog, me->prop[i], vec->prop[i]); |
| 365 | bv_variable_set_uchar(&ret, eq && bv_variable_get_uchar(ret)); |
| 366 | } |
| 367 | } |
| 368 | } |
| 369 | } |
| 370 | |
| 371 | return ret; |
| 372 | } |
| 373 | bv_variable lib_common_vec_operator_add(bv_program* prog, bv_object* me, u8 count, bv_variable* args) |
| 374 | { |
| 375 | bv_variable ret = bv_variable_create_void(); |
nothing calls this directly
no outgoing calls
no test coverage detected