From 54a0754dfa228b554c1932a6b1b336ae6e929149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 28 Aug 2023 14:21:57 +0200 Subject: [PATCH] Math: hide tweakable implementations including the enclosing namespace. --- src/Magnum/Math/Angle.h | 4 ++-- src/Magnum/Math/Color.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Magnum/Math/Angle.h b/src/Magnum/Math/Angle.h index edcdf498e..8bb636d0d 100644 --- a/src/Magnum/Math/Angle.h +++ b/src/Magnum/Math/Angle.h @@ -254,9 +254,9 @@ extern template MAGNUM_EXPORT Corrade::Utility::Debug& operator<<(Corrade::Utili }} +#if !defined(CORRADE_NO_TWEAKABLE) && (defined(DOXYGEN_GENERATING_OUTPUT) || defined(CORRADE_TARGET_UNIX) || (defined(CORRADE_TARGET_WINDOWS) && !defined(CORRADE_TARGET_WINDOWS_RT)) || defined(CORRADE_TARGET_EMSCRIPTEN)) namespace Corrade { namespace Utility { -#if !defined(CORRADE_NO_TWEAKABLE) && (defined(DOXYGEN_GENERATING_OUTPUT) || defined(CORRADE_TARGET_UNIX) || (defined(CORRADE_TARGET_WINDOWS) && !defined(CORRADE_TARGET_WINDOWS_RT)) || defined(CORRADE_TARGET_EMSCRIPTEN)) /** @tweakableliteral{Magnum::Math::Deg} @@ -328,8 +328,8 @@ template<> struct MAGNUM_EXPORT TweakableParser struct TweakableParser>: TweakableParser> {}; #endif -#endif }} +#endif #endif diff --git a/src/Magnum/Math/Color.h b/src/Magnum/Math/Color.h index c1452c9a6..cfcb16b09 100644 --- a/src/Magnum/Math/Color.h +++ b/src/Magnum/Math/Color.h @@ -1606,9 +1606,9 @@ namespace Implementation { }} +#if !defined(CORRADE_NO_TWEAKABLE) && (defined(DOXYGEN_GENERATING_OUTPUT) || defined(CORRADE_TARGET_UNIX) || (defined(CORRADE_TARGET_WINDOWS) && !defined(CORRADE_TARGET_WINDOWS_RT)) || defined(CORRADE_TARGET_EMSCRIPTEN)) namespace Corrade { namespace Utility { -#if !defined(CORRADE_NO_TWEAKABLE) && (defined(DOXYGEN_GENERATING_OUTPUT) || defined(CORRADE_TARGET_UNIX) || (defined(CORRADE_TARGET_WINDOWS) && !defined(CORRADE_TARGET_WINDOWS_RT)) || defined(CORRADE_TARGET_EMSCRIPTEN)) /** @tweakableliteral{Magnum::Math::Color3} @@ -1672,8 +1672,8 @@ template<> struct MAGNUM_EXPORT TweakableParser> parse(Containers::StringView value); }; -#endif }} +#endif #endif