TaPAS
0.2
|
Some useful and common macros. More...
#include <ccl/ccl-config.h>
Go to the source code of this file.
Macros | |
#define | CCL_NOP() ((void) 0) |
"Do-Nothing" statement | |
#define | CCL_BITPTR(_type, _p) ((_type)(((uintptr_t)(_p))|((uintptr_t)1))) |
Set the least-significant bit of the address _p and casts the result to the type _type. | |
#define | CCL_PTRHASBIT(_p) (((uintptr_t)(_p))&((uintptr_t)1)) |
Checks if the least-significant bit of the address _p is set or not. | |
#define | CCL_BITPTR2PTR(_type, _p) ((_type)(((uintptr_t)(_p))&(~(uintptr_t)1))) |
Unset the least-significant bit of the address _p and casts the result to the type _type. | |
#define | CCL_FIXME(_comment_) ((void)0) |
A simple macro use to annotate a part of the code that has some problem and that must be fixed. | |
Some useful and common macros.
Definition in file ccl-common.h.