summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-04-08 12:24:30 +0200
committerGitHub <noreply@github.com>2019-04-08 12:24:30 +0200
commit918de768a550b89da0d232f2040fa618bb10e25a (patch)
tree5d5e499becefbc8fc4a08e7a06dd0a99a2059887 /core
parent3cf2bdbd8416ffd39c105bf64fc3544424d0a2cf (diff)
parentad2127a3e8b274d4946a35cafd31c904a3de294b (diff)
Merge pull request #27711 from neikeq/ifdef-clang-tidy
Replace a few #if/#elif with #ifdef and "#elif defined"
Diffstat (limited to 'core')
-rw-r--r--core/vmap.h2
-rw-r--r--core/vset.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/vmap.h b/core/vmap.h
index f46ed70a0f..fde9723d71 100644
--- a/core/vmap.h
+++ b/core/vmap.h
@@ -65,7 +65,7 @@ private:
const Pair *a = _cowdata.ptr();
int middle = 0;
-#if DEBUG_ENABLED
+#ifdef DEBUG_ENABLED
if (low > high)
ERR_PRINT("low > high, this may be a bug");
#endif
diff --git a/core/vset.h b/core/vset.h
index 678ec507ba..5f087a5a03 100644
--- a/core/vset.h
+++ b/core/vset.h
@@ -50,7 +50,7 @@ class VSet {
const T *a = &_data[0];
int middle = 0;
-#if DEBUG_ENABLED
+#ifdef DEBUG_ENABLED
if (low > high)
ERR_PRINT("low > high, this may be a bug");
#endif