在 2024-11-30 07:00, Pali Rohár 写道:
Yes, usage of those macros are for applications. VC++ header files also contain this _STATIC_ASSERT macro and I saw it used in some applications.This macro is useful when writing pre-C11/C++11 code. Or when writing C11 code without C23 compiler support and want to write static assert with automatic message (one arg variant) and do not want to invent custom macro. And I think it is better to use modern compiler keywords for static asserts when they are available instead of old negative array size hack.(Feel free to push this, otherwise I can push it later.) // Martin
This patch looks good to me, too. I have pushed it to master now. -- Best regards, LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
