Update SDL_InvalidParamError to take param name; add additional fuzzer function; add new tests to keyboard test suite; improve surface test suite
This commit is contained in:
parent
c1e8384624
commit
b4a190fb6f
10 changed files with 272 additions and 54 deletions
|
@ -52,7 +52,7 @@ extern DECLSPEC void SDLCALL SDL_ClearError(void);
|
|||
/*@{*/
|
||||
#define SDL_OutOfMemory() SDL_Error(SDL_ENOMEM)
|
||||
#define SDL_Unsupported() SDL_Error(SDL_UNSUPPORTED)
|
||||
#define SDL_InvalidParamError() SDL_Error(SDL_INVALIDPARAM)
|
||||
#define SDL_InvalidParamError(param) SDL_SetError("Parameter '%s' is invalid", (param))
|
||||
typedef enum
|
||||
{
|
||||
SDL_ENOMEM,
|
||||
|
@ -60,7 +60,6 @@ typedef enum
|
|||
SDL_EFWRITE,
|
||||
SDL_EFSEEK,
|
||||
SDL_UNSUPPORTED,
|
||||
SDL_INVALIDPARAM,
|
||||
SDL_LASTERROR
|
||||
} SDL_errorcode;
|
||||
extern DECLSPEC void SDLCALL SDL_Error(SDL_errorcode code);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue