Add macros for errno-like assertions