brick_checking: fix spaces

This commit is contained in:
Thomas Schoebel-Theuer 2014-06-27 11:08:58 +02:00 committed by Thomas Schoebel-Theuer
parent 63cdd063e3
commit 437d4b6d2c

View File

@ -38,7 +38,7 @@
do { \ do { \
if (BRICK_CHECKING) { \ if (BRICK_CHECKING) { \
int __test = atomic_read(atom); \ int __test = atomic_read(atom); \
if (unlikely(__test OP (minval))) { \ if (unlikely(__test OP(minval))) { \
atomic_set(atom, minval); \ atomic_set(atom, minval); \
BRICK_ERR("%d: atomic " #atom " " #OP " " #minval " (%d)\n", __LINE__, __test); \ BRICK_ERR("%d: atomic " #atom " " #OP " " #minval " (%d)\n", __LINE__, __test); \
} \ } \
@ -91,11 +91,11 @@ do { \
#endif #endif
#define CHECK_ASPECT(a_ptr, o_ptr,label) \ #define CHECK_ASPECT(a_ptr, o_ptr,label) \
do { \ do { \
if (BRICK_CHECKING && unlikely((a_ptr)->object != o_ptr)) { \ if (BRICK_CHECKING && unlikely((a_ptr)->object != o_ptr)) { \
BRICK_FAT("%d: aspect pointer '" #a_ptr "' (%p) belongs to object %p, not to " #o_ptr " (%p)\n", __LINE__, a_ptr, (a_ptr)->object, o_ptr); \ BRICK_FAT("%d: aspect pointer '" #a_ptr "' (%p) belongs to object %p, not to " #o_ptr " (%p)\n", __LINE__, a_ptr, (a_ptr)->object, o_ptr); \
goto label; \ goto label; \
} \ } \
} while (0) } while (0)
#define _CHECK(ptr,label) \ #define _CHECK(ptr,label) \