in inc/com_wrapper/com_wrapper.h [127:141]
wrapped_handle_type MU_C4(COM_WRAPPER_TYPE_GET_WRAPPED_HANDLE_, wrapped_handle_type, _, implemented_interface)(implemented_interface* com_object) \
{ \
wrapped_handle_type result; \
if (com_object == NULL) \
{ \
LogError("Invalid arguments: " MU_TOSTRING(implemented_interface) "* com_object=%p", com_object); \
result = NULL; \
} \
else \
{ \
MU_C2(wrapped_handle_type, _COM_WRAPPER)* com_wrapper = (MU_C2(wrapped_handle_type, _COM_WRAPPER)*)((unsigned char*)com_object - offsetof(MU_C2(wrapped_handle_type, _COM_WRAPPER), MU_C2(implemented_interface, _if))); \
result = com_wrapper->object_data; \
} \
return result; \
}