Use enum instead of constant macro