Add defendpoint macros for code generation