在 2022-03-30 22:50, Martin Storsjö 写道:

Thanks, that's indeed a very valid concern. Making the name less generic would certainly be good, but the symbol could still easily end up autoexported.

Would it be better to have these things in the CRT as they are not C++, instead of having a selectany symbol in the header?

While these functions don't seem to do anything much C++ specific, they still aren't within an 'extern "C" { .. }" block, so they do get C++ mangled and all that.

The selectany variable does need to point at _com_raise_error originally, and that function is very much C++ (as it throws an exception).

So overall, I don't think we can escape that these bits really are C++.


Yes I agree with these. As suggested in the previous message, I still think `__error_handler` is too generic for its purpose. Would you please change it to something specific, such as `__mingw_com_error_handler`?




--
Best regards,
LIU Hao

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to