Core: Use an enum for the Gekko exception flags instead of defines