Use preprocessor macros for the get/set funcs for the primitive types.