ALSA: Introduce snd_BUG_ON() macro
authorTakashi Iwai <tiwai@suse.de>
Fri, 8 Aug 2008 15:06:01 +0000 (17:06 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 13 Aug 2008 09:46:32 +0000 (11:46 +0200)
Introduced snd_BUG_ON() macro as a replacement of snd_assert() macro.
snd_assert() is pretty ugly as it has the control flow in its argument.
OTOH, snd_BUG_ON() behaves like a normal conditional, thus it's much
easier to read the flow.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>

No differences found