Add macros to define getters and setters