Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Unified Diff: tools/ipc_fuzzer/ipclist/ipclist.cc

Issue 825323002: replace COMPILE_ASSERT with static_assert in tools/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add fixups Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/android/memdump/memdump.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/ipc_fuzzer/ipclist/ipclist.cc
diff --git a/tools/ipc_fuzzer/ipclist/ipclist.cc b/tools/ipc_fuzzer/ipclist/ipclist.cc
index f1d005029e567c606336a0a3b283edb3690c0574..6212f7d5f0aade54fea9bcc67ea29b77b49801b2 100644
--- a/tools/ipc_fuzzer/ipclist/ipclist.cc
+++ b/tools/ipc_fuzzer/ipclist/ipclist.cc
@@ -34,7 +34,7 @@ static msginfo msgtable[] = {
#include "tools/ipc_fuzzer/message_lib/all_messages.h"
};
#define MSGTABLE_SIZE (sizeof(msgtable)/sizeof(msgtable[0]))
-COMPILE_ASSERT(MSGTABLE_SIZE, CHECK_YOUR_HEADERS_FOR_AN_EXTRA_SEMICOLON);
+static_assert(MSGTABLE_SIZE, "check your headers for an extra semicolon");
static bool check_msgtable() {
bool result = true;
« no previous file with comments | « tools/android/memdump/memdump.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698