From 2c48ccd7409e355a3ce74f98a85021ec513f915a Mon Sep 17 00:00:00 2001 From: Duncan Horn Date: Mon, 20 Jul 2026 12:42:10 -0700 Subject: [PATCH] common.h --- include/wil/common.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/include/wil/common.h b/include/wil/common.h index 3a08edaf..2f24d7d2 100644 --- a/include/wil/common.h +++ b/include/wil/common.h @@ -548,8 +548,8 @@ namespace details static constexpr unsigned long long value = flag; }; } // namespace details -} // namespace wil /// @endcond +} // namespace wil //! Returns the unsigned type of the same width and numeric value as the given enum #define WI_EnumValue(val) static_cast<::wil::integral_from_enum>(val) @@ -680,8 +680,10 @@ doing it with global function pointers and header initialization allows a runtim #error linker pragma must include g_header_init variation #endif +/// @cond // Keep the misspelled name for backward compatibility. #define WI_HEADER_INITITALIZATION_FUNCTION(name, fn) WI_HEADER_INITIALIZATION_FUNCTION(name, fn) +/// @endcond /** All Windows Implementation Library classes and functions are located within the "wil" namespace. The 'wil' namespace is an intentionally short name as the intent is for code to be able to reference @@ -809,6 +811,7 @@ _Post_satisfies_(return == static_cast(val)) constexpr bool verify_bool(co return static_cast(val); } +/// @cond template constexpr bool verify_bool(T /*val*/) WI_NOEXCEPT { @@ -833,6 +836,7 @@ _Post_satisfies_(return == (val != 0)) constexpr bool verify_bool { return (val != 0); } +/// @endcond /** Verify that `val` is a Win32 BOOL value. Other types (including other logical bool expressions) will generate an intentional compilation error. Note that this will @@ -1033,7 +1037,10 @@ void doit(const T& val) This will invoke the first overload if a type `T` satisfies both `condition_a` and `condition_b`. */ template -struct priority_tag : priority_tag +struct priority_tag +#ifndef WIL_DOXYGEN + : priority_tag +#endif { };