debug: seperate SCOPED_SANITY from CHECK_SANITY
the former is for checking immediately and a scope exit, the latter is for checking immediately.
This commit is contained in:
parent
f5399450ab
commit
c5d142ec9a
@ -126,11 +126,15 @@
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
#define CHECK_SANITY(A) \
|
||||
::util::debug::scoped_sanity PASTE(__scoped_sanity_checker,__LINE__) (A); \
|
||||
#define SCOPED_SANITY(A) \
|
||||
::util::debug::scoped_sanity PASTE(__scoped_sanity_checker,__LINE__) ((A)); \
|
||||
(void)PASTE(__scoped_sanity_checker,__LINE__);
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
#define CHECK_SANITY(A) CHECK(::util::debug::is_valid ((A)))
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
#define CHECK_EQ(A,B) do { \
|
||||
DEBUG_ONLY ( \
|
||||
|
Loading…
Reference in New Issue
Block a user