Go to the documentation of this file.
21 #ifndef SDL_internal_h_
22 #define SDL_internal_h_
32 #if (defined(__GNUC__) && (__GNUC__ <= 2)) || defined(__CC_ARM) || defined(__cplusplus)
33 #define SDL_VARIABLE_LENGTH_ARRAY 1
35 #define SDL_VARIABLE_LENGTH_ARRAY
38 #define SDL_MAX_SMALL_ALLOC_STACKSIZE 128
39 #define SDL_small_alloc(type, count, pisstack) ( (*(pisstack) = ((sizeof(type)*(count)) < SDL_MAX_SMALL_ALLOC_STACKSIZE)), (*(pisstack) ? SDL_stack_alloc(type, count) : (type*)SDL_malloc(sizeof(type)*(count))) )
40 #define SDL_small_free(ptr, isstack) if ((isstack)) { SDL_stack_free(ptr); } else { SDL_free(ptr); }
52 #include "SDL_config.h"