Removed the limit on the size of the SDL error message

Also added SDL_GetOriginalMemoryFunctions()

Fixes https://github.com/libsdl-org/SDL/issues/5795
This commit is contained in:
Sam Lantinga
2022-06-27 16:59:50 -07:00
parent f25b4b2774
commit cbd0187475
11 changed files with 126 additions and 16 deletions

View File

@@ -27,12 +27,13 @@
#ifndef SDL_error_c_h_
#define SDL_error_c_h_
#define ERR_MAX_STRLEN 128
typedef struct SDL_error
{
int error; /* This is a numeric value corresponding to the current error */
char str[ERR_MAX_STRLEN];
char *str;
size_t len;
SDL_realloc_func realloc_func;
SDL_free_func free_func;
} SDL_error;
/* Defined in SDL_thread.c */