aboutsummaryrefslogtreecommitdiffhomepage
path: root/sanity.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2011-12-26 19:18:46 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2011-12-26 19:18:46 -0800
commit8d2f107d61a8b0e099ab9a59b8a32c236da5a5fc (patch)
tree89f718ab74f8400332534aee237c6f925348f05c /sanity.cpp
parent3f16ace6784caab54fb054836ee93902e9701913 (diff)
Some changes to migrate towards C++ and a multithreaded model
Diffstat (limited to 'sanity.cpp')
-rw-r--r--sanity.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/sanity.cpp b/sanity.cpp
index c68a87d2..3e51b4f3 100644
--- a/sanity.cpp
+++ b/sanity.cpp
@@ -49,27 +49,27 @@ int sanity_check()
kill_sanity_check();
if( !insane )
proc_sanity_check();
-
+
return insane;
}
void validate_pointer( const void *ptr, const wchar_t *err, int null_ok )
{
-
- /*
- Test if the pointer data crosses a segment boundary.
+
+ /*
+ Test if the pointer data crosses a segment boundary.
*/
-
+
if( (0x00000003l & (long)ptr) != 0 )
{
debug( 0, _(L"The pointer '%ls' is invalid"), err );
- sanity_lose();
+ sanity_lose();
}
-
+
if((!null_ok) && (ptr==0))
{
debug( 0, _(L"The pointer '%ls' is null"), err );
- sanity_lose();
+ sanity_lose();
}
}