toAssertState method
Convert from a SDL_AssertState
member.
Implementation
AssertState toAssertState() {
switch (this) {
case SDL_AssertState.SDL_ASSERTION_RETRY:
return AssertState.assertionRetry;
case SDL_AssertState.SDL_ASSERTION_BREAK:
return AssertState.assertionBreak;
case SDL_AssertState.SDL_ASSERTION_ABORT:
return AssertState.assertionAbort;
case SDL_AssertState.SDL_ASSERTION_IGNORE:
return AssertState.assertionIgnore;
case SDL_AssertState.SDL_ASSERTION_ALWAYS_IGNORE:
return AssertState.assertionAlwaysIgnore;
default:
throw SdlError(
this,
'Unrecognised `SDL_AssertState` member.',
);
}
}