ensureSafe

Takes in an integer output from an SDL function and then throws an error if the integer isn't 0 Because SDL doesn't throw errors, but rather returns codes, 0 means a successful finish to a function Any non-zero output from a function means that SDL encountered an error, and this function will throw upon an SDL error

  1. void ensureSafe(int output)
    void
    ensureSafe
    (
    int output
    )
  2. T ensureSafe(T output)

Meta