radeon: Improve WARN_ONCE macro to appear as single statement.
authorPauli Nieminen <suokkos@gmail.com>
Sun, 20 Sep 2009 17:07:35 +0000 (20:07 +0300)
committerPauli Nieminen <suokkos@gmail.com>
Sun, 20 Sep 2009 17:15:52 +0000 (20:15 +0300)
commit5fa9a7a9a9cb87c8a86402981cc1b4affde95777
tree4cbe3aed180a62fd32ee6272a639b6ac35bf246a
parent94a3c5979fdfa7e5da97523456ee89848528aab0
radeon: Improve WARN_ONCE macro to appear as single statement.

Do-while makes macro safe to be used with if and for constructions.

Also remove __LINE__ macro from variable name because scope is local to macro anyway.
src/mesa/drivers/dri/radeon/radeon_debug.h