Add new macros to test pointers

Adding a new macro to test pointers for NULL or NOT NULL. These macros more correctly
use the NULL macro.