use defines for unreachable
This commit is contained in:
parent
c998e946aa
commit
6e16dfa5e5
2 changed files with 11 additions and 3 deletions
|
|
@ -129,10 +129,12 @@ public:
|
|||
case AVARTYPE_COLOR:
|
||||
return m_cValue != m_cGoal;
|
||||
default:
|
||||
std::unreachable();
|
||||
UNREACHABLE();
|
||||
}
|
||||
|
||||
std::unreachable();
|
||||
UNREACHABLE();
|
||||
|
||||
return false; // just so that the warning is suppressed
|
||||
}
|
||||
|
||||
void warp() {
|
||||
|
|
@ -150,7 +152,7 @@ public:
|
|||
break;
|
||||
}
|
||||
default:
|
||||
std::unreachable();
|
||||
UNREACHABLE();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue