BUGed to death
Quoted 5 lines
If you do that, you must audit every single
BUG_ONto make sure the expression doesn't have any side effects.BUG_ON(do_the_good_stuff());
Sounds like a candidate for machine audit. You can declare
pure functions in GCC 2.96+ but I see no way to assert that an expression is pure...
--
Chuck