Bug 914826 - part 1 - use static_assert instead of COMPILE_ASSERT in IPCMessageStart.h; r=ehsan
☠☠ backed out by e16e1dae3315 ☠ ☠
authorNathan Froyd <froydnj@mozilla.com>
Tue, 10 Sep 2013 15:07:10 -0400
changeset 147156 52b319afe96567de56f105171546120ebf51a578
parent 147155 fb9df2cda8228d584750da40287bec61b9dd92af
child 147157 58d96448609a9478904a17734e99b037facf60db
push id25287
push userkwierso@gmail.com
push dateSat, 14 Sep 2013 01:14:44 +0000
treeherdermozilla-central@53d5e43e23cc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan
bugs914826
milestone26.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 914826 - part 1 - use static_assert instead of COMPILE_ASSERT in IPCMessageStart.h; r=ehsan
ipc/ipdl/ipdl.py
--- a/ipc/ipdl/ipdl.py
+++ b/ipc/ipdl/ipdl.py
@@ -159,14 +159,14 @@ enum IPCMessageStart {
 for name in allprotocols:
     print >>ipcmsgstart, "  %s," % name
     print >>ipcmsgstart, "  %sChild," % name
 
 print >>ipcmsgstart, """
   LastMsgIndex
 };
 
-COMPILE_ASSERT(LastMsgIndex <= 65536, need_to_update_IPC_MESSAGE_MACRO);
+static_assert(LastMsgIndex <= 65536, "need to update IPC_MESSAGE_MACRO");
 
 #endif // ifndef IPCMessageStart_h
 """
 
 ipdl.writeifmodified(ipcmsgstart.getvalue(), ipcmessagestartpath)