Skip to contentSkip to conversation

BUGed to death

DISCUSSION Chuck Ebbert 1 participant 1 message Apr 15, 2003

lore
Share & tools
lore
#0 lore raw
Quoted 5 lines

If you do that, you must audit every single BUG_ON to 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