We have several ways to assert on otherwise unused variables, none of with is elegant enough: 1) if (!expr) ASSERT_NOT_REACHED(); 2) UNUSED_PARAM(); 3) #ifndef NDEBUG int result = #endif function(); ASSERT(!result) Darin suggested adding a macro just for this purpose that would combine ASSERT and UNUSED_PARAM.
Created attachment 26428 [details] proposed patch
Comment on attachment 26428 [details] proposed patch This is great. I'm a little worried that the name, "ASSERT_UNUSED", will make people thing we're asserting that something is unused. But only a little worried, not a lot. r=me
Committed revision 39600.