Bladeren bron

Interrogate should ignore static_asserts

rdb 10 jaren geleden
bovenliggende
commit
e5761dd503
1 gewijzigde bestanden met toevoegingen van 3 en 1 verwijderingen
  1. 3 1
      dtool/src/prc/pnotify.h

+ 3 - 1
dtool/src/prc/pnotify.h

@@ -194,7 +194,9 @@ private:
 
 #endif  // NDEBUG
 
-#if __cplusplus >= 201103
+#if defined(CPPPARSER)
+#define nassert_static(condition)
+#elif __cplusplus >= 201103
 #define __nassert_static(condition, line, file) static_assert((condition), #condition " at line " #line " of " file)
 #define _nassert_static(condition, line, file) __nassert_static(condition, line, file)
 #define nassert_static(condition) _nassert_static(condition, __LINE__, __FILE__)