Open slavko-m opened 1 year ago
It's happening because it's a bug. ;)
It's processing the brackets and the pointer separately, and using each to specify that you're talking to an array... so it's decided it's and array of array (correctly) but (incorrectly) not collapsed it down to a single pointer as it does other things.
The handling for arrays and pointers should be getting major improvements soon. this is one of the things to be addressed.
Sorry for the headaches. :(
Thanks for the answer! For now, I will use workaround by using :unity_helper_path:
where I defined
#define UNITY_TEST_ASSERT_EQUAL_HEX8_ARRAY_ARRAY UNITY_TEST_ASSERT_EQUAL_HEX8_ARRAY
to avoid build issues.
Hi,
I am trying to mock a function from OpenVX:
vx_image vxCreateImageFromHandle(vx_context context, vx_df_image color, const vx_imagepatch_addressing_t addrs[], void *const ptrs[], vx_enum memory_type);
The problem is when the mock is generated, there is a weird function called UNITY_TEST_ASSERT_EQUAL_HEX8_ARRAY_ARRAY generated (which doesn't exist in Unity), because of
void *const ptrs[]
argument:Anyone knows why is this happening, and if there is a solution for this?