Add new internal error message for invalid parameters; add validation of input rect in SDL_SetTextInputRect; add test cases for SDL_SetTextInputRect to keyboard suite
This commit is contained in:
parent
054a17097d
commit
a20096403e
6 changed files with 156 additions and 1 deletions
|
@ -52,6 +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)
|
||||
typedef enum
|
||||
{
|
||||
SDL_ENOMEM,
|
||||
|
@ -59,6 +60,7 @@ 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