Browse Source

config: suppress macro usage linter messages

Michele Caini 1 year ago
parent
commit
1ffbd845dc
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/entt/config/config.h

+ 4 - 0
src/entt/config/config.h

@@ -3,6 +3,8 @@
 
 
 #include "version.h"
 #include "version.h"
 
 
+// NOLINTBEGIN(cppcoreguidelines-macro-usage)
+
 #if defined(__cpp_exceptions) && !defined(ENTT_NOEXCEPTION)
 #if defined(__cpp_exceptions) && !defined(ENTT_NOEXCEPTION)
 #    define ENTT_CONSTEXPR
 #    define ENTT_CONSTEXPR
 #    define ENTT_THROW throw
 #    define ENTT_THROW throw
@@ -88,4 +90,6 @@
 #    pragma detect_mismatch("entt.nonstd", ENTT_XSTR(ENTT_NONSTD))
 #    pragma detect_mismatch("entt.nonstd", ENTT_XSTR(ENTT_NONSTD))
 #endif
 #endif
 
 
+// NOLINTEND(cppcoreguidelines-macro-usage)
+
 #endif
 #endif