macros: return NULL instead of 0.