WIZlib Library API  ver 1.0
WIZlib Library API User Menual
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs
Macro Util

Simple Macro Utilities. More...

Collaboration diagram for Macro Util:

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).
 

Detailed Description

Simple Macro Utilities.