![]() |
WIZlib Library API
ver 1.0
WIZlib Library API User Menual
|
Simple Macro Utilities. More...
|
Macros | |
| #define | MEM_FREE(mem_p) do{ if(mem_p) { free(mem_p); mem_p = NULL; } }while(0) |
| If pointer is not NULL, free it and set to NULL. | |
| #define | BITSET(var_v, bit_v) (var_v |= bit_v) |
| Set bit in variable. | |
| #define | BITCLR(var_v, bit_v) (var_v &= ~(bit_v)) |
| Clear bit in variable. | |
Typedefs | |
| typedef union long2char_t | long2char |
| General purpose type change union (32bit <-> 8bit). | |
| typedef union short2char_t | short2char |
| General purpose type change union (16bit <-> 8bit). | |
Simple Macro Utilities.
1.8.3.1