headers: Add macros for defining and calling is_Code handlers