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
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