Utility macro library for generating code