SDL
2.0
|
Go to the source code of this file.
Macros | |
#define | _GNU_SOURCE |
#define | SDL_VARIABLE_LENGTH_ARRAY |
#define | SDL_MAX_SMALL_ALLOC_STACKSIZE 128 |
#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))) ) |
#define | SDL_small_free(ptr, isstack) if ((isstack)) { SDL_stack_free(ptr); } else { SDL_free(ptr); } |
#define | DECLSPEC |
#define | SDLCALL |
#define _GNU_SOURCE |
Definition at line 26 of file SDL_internal.h.
#define DECLSPEC |
Definition at line 48 of file SDL_internal.h.
#define SDL_MAX_SMALL_ALLOC_STACKSIZE 128 |
Definition at line 38 of file SDL_internal.h.
#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))) ) |
Definition at line 39 of file SDL_internal.h.
#define SDL_small_free | ( | ptr, | |
isstack | |||
) | if ((isstack)) { SDL_stack_free(ptr); } else { SDL_free(ptr); } |
Definition at line 40 of file SDL_internal.h.
#define SDL_VARIABLE_LENGTH_ARRAY |
Definition at line 35 of file SDL_internal.h.
#define SDLCALL |
Definition at line 49 of file SDL_internal.h.