]> git.rm.cloudns.org Git - xonotic/netradiant.git/commit
changed ASSERT_MESSAGE and ERROR_MESSAGE macros to use proper
authorForest Hale <lordhavoc>
Mon, 5 Mar 2007 23:45:55 +0000 (23:45 +0000)
committerForest Hale <lordhavoc>
Mon, 5 Mar 2007 23:45:55 +0000 (23:45 +0000)
commit5dd408d91dd3ec430401c854fc69f2df8597ebfd
treea2894f03dd70b71eaf6a2b284c8008065e89c7f3
parente5de74a41fb8a0a89d7ac4cf4b04563f82050efe
changed ASSERT_MESSAGE and ERROR_MESSAGE macros to use proper
do{}while(0) encapsulation to protect them when used in an if block
without {}
previously they used else to consume the trailing ; but this
could just as easily consume any other following statement
(very dangerous in concept, but no damage done in this case)
this causes no change whatsoever in release builds

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@152 8a3a26a2-13c4-0310-b231-cf6edde360e5
libs/debugging/debugging.h
radiant/brush.h
radiant/dialog.cpp
radiant/mainframe.cpp