Bug 914826 - part 1 - use static_assert instead of COMPILE_ASSERT in IPCMessageStart.h; r=ehsan
authorNathan Froyd <froydnj@mozilla.com>
Tue, 10 Sep 2013 15:07:10 -0400
changeset 149020 011a9b6b8457ff48ee30a0953ffc72fb8fe6c4d5
parent 149019 c85c2981bc8d3dc5906e8a6bb1c15d4f444665a0
child 149021 f0bf7e9815ff5faf158504e2625269118949c68f
push idunknown
push userunknown
push dateunknown
reviewersehsan
bugs914826
milestone27.0a1
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)