Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/internal
diff options
context:
space:
mode:
authorMartin Hořeňovský2025-07-20 21:40:18 +0200
committerMartin Hořeňovský2025-07-21 21:50:43 +0200
commit8c3ffe05e1293e64c8d10bcd68092fe9de9673ff (patch)
tree6149e88b69977fbf331f2742f06ea63bd0390b3f /src/catch2/internal
parent715558fd97a48533fd41cb7dddf23b05d333cec6 (diff)
downloadcatch3-8c3ffe05e1293e64c8d10bcd68092fe9de9673ff.tar.gz
Skeleton for applying deprecation warnings
Diffstat (limited to 'src/catch2/internal')
-rw-r--r--src/catch2/internal/catch_deprecation_macro.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/catch2/internal/catch_deprecation_macro.hpp b/src/catch2/internal/catch_deprecation_macro.hpp
new file mode 100644
index 00000000..7834882b
--- /dev/null
+++ b/src/catch2/internal/catch_deprecation_macro.hpp
@@ -0,0 +1,19 @@
+
+// Copyright Catch2 Authors
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE.txt or copy at
+// https://www.boost.org/LICENSE_1_0.txt)
+
+// SPDX-License-Identifier: BSL-1.0
+#ifndef CATCH_DEPRECATION_MACRO_HPP_INCLUDED
+#define CATCH_DEPRECATION_MACRO_HPP_INCLUDED
+
+#include <catch2/catch_user_config.hpp>
+
+#if !defined( CATCH_CONFIG_NO_DEPRECATION_ANNOTATIONS )
+# define DEPRECATED( msg ) [[deprecated( msg )]]
+#else
+# define DEPRECATED( msg )
+#endif
+
+#endif // CATCH_DEPRECATION_MACRO_HPP_INCLUDED