generated set and get methods for macro attributes