diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2011-12-26 19:18:46 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2011-12-26 19:18:46 -0800 |
commit | 8d2f107d61a8b0e099ab9a59b8a32c236da5a5fc (patch) | |
tree | 89f718ab74f8400332534aee237c6f925348f05c /sanity.cpp | |
parent | 3f16ace6784caab54fb054836ee93902e9701913 (diff) |
Some changes to migrate towards C++ and a multithreaded model
Diffstat (limited to 'sanity.cpp')
-rw-r--r-- | sanity.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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(); } } |