Bug 895322 - Part 2: Stop generating MOZ_STATIC_ASSERT in the telemetry code; r=Waldo
authorEhsan Akhgari <ehsan@mozilla.com>
Thu, 18 Jul 2013 14:32:52 -0400
changeset 152874 81eb7ee863cdea89a6021b361806017c229596a3
parent 152873 552bca1bc885acca25c1c431e39a872b6f703b24
child 152875 9ca5f17400173a2c176b9888802dbdcb8d448b07
push id2859
push userakeybl@mozilla.com
push dateMon, 16 Sep 2013 19:14:59 +0000
treeherdermozilla-beta@87d3c51cd2bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersWaldo
bugs895322
milestone25.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 895322 - Part 2: Stop generating MOZ_STATIC_ASSERT in the telemetry code; r=Waldo
toolkit/components/telemetry/gen-histogram-data.py
--- a/toolkit/components/telemetry/gen-histogram-data.py
+++ b/toolkit/components/telemetry/gen-histogram-data.py
@@ -80,17 +80,17 @@ def write_histogram_table(histograms):
                   "index overflow")
 
 # Write out static asserts for histogram data.  We'd prefer to perform
 # these checks in this script itself, but since several histograms
 # (generally enumerated histograms) use compile-time constants for
 # their upper bounds, we have to let the compiler do the checking.
 
 def static_assert(expression, message):
-    print "MOZ_STATIC_ASSERT(%s, \"%s\");" % (expression, message)
+    print "static_assert(%s, \"%s\");" % (expression, message)
 
 def static_asserts_for_boolean(histogram):
     pass
 
 def static_asserts_for_flag(histogram):
     pass
 
 def static_asserts_for_enumerated(histogram):