Implemented some API checking macros.