[fix] check for constant via defined()