Defines |
| #define | SET_FLAG(xyz, p) ((xyz)->flags[p / 32] |= (1U << (p % 32))) |
| #define | CLEAR_FLAG(xyz, p) ((xyz)->flags[p / 32] &= ~(1U << (p % 32))) |
| #define | QUERY_FLAG(xyz, p) ((xyz)->flags[p / 32] & (1U << (p % 32))) |
Detailed Description
Basic macros to do the above.
Define Documentation
| #define CLEAR_FLAG |
( |
|
xyz, |
|
|
|
p |
|
) |
| ((xyz)->flags[p / 32] &= ~(1U << (p % 32))) |
Clear flag of an object.
- Parameters:
-
| xyz | The object |
| p | The flag to clear |
Definition at line 845 of file define.h.
| #define QUERY_FLAG |
( |
|
xyz, |
|
|
|
p |
|
) |
| ((xyz)->flags[p / 32] & (1U << (p % 32))) |
Query flag of an object.
- Parameters:
-
| xyz | The object |
| p | The flag to query |
Definition at line 852 of file define.h.
| #define SET_FLAG |
( |
|
xyz, |
|
|
|
p |
|
) |
| ((xyz)->flags[p / 32] |= (1U << (p % 32))) |
Set flag of of an object.
- Parameters:
-
| xyz | The object |
| p | The flag to set |
Definition at line 838 of file define.h.