toInt method

int toInt()

Return an integer.

Implementation

int toInt() {
  switch (this) {
    case AssertState.assertionRetry:
      return SDL_AssertState.SDL_ASSERTION_RETRY;
    case AssertState.assertionBreak:
      return SDL_AssertState.SDL_ASSERTION_BREAK;
    case AssertState.assertionAbort:
      return SDL_AssertState.SDL_ASSERTION_ABORT;
    case AssertState.assertionIgnore:
      return SDL_AssertState.SDL_ASSERTION_IGNORE;
    case AssertState.assertionAlwaysIgnore:
      return SDL_AssertState.SDL_ASSERTION_ALWAYS_IGNORE;
  }
}