Also cur_def check for enums