mirror of
https://github.com/schoebel/mars
synced 2025-02-26 17:40:43 +00:00
brick_checking: fix spaces
This commit is contained in:
parent
63cdd063e3
commit
437d4b6d2c
@ -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) \
|
||||||
|
Loading…
Reference in New Issue
Block a user