This is new wiki software and old wiki content. It's a work in progress!
Here's the explanation.
Be gentle, report bugs, leave feedback on pages, or just edit them yourself! Thanks!

SDL Wiki

SDL_GetMemoryFunctions

  1. ifndef DOXYGEN_SHOULD_IGNORE_THIS #if !defined(__ANDROID__) && !defined(__VITA__) /TODO: include/SDL_stdinc.h:174: error: size of array 'SDL_dummy_enum' is negative/ typedef enum { DUMMY_ENUM_VALUE } SDL_DUMMY_ENUM;

Syntax

void SDL_GetMemoryFunctions(SDL_malloc_func *malloc_func,
                            SDL_calloc_func *calloc_func,
                            SDL_realloc_func *realloc_func,
                            SDL_free_func *free_func);

Remarks

SDL_COMPILE_TIME_ASSERT(enum, sizeof(SDL_DUMMY_ENUM) == sizeof(int)); #endif #endif /DOXYGEN_SHOULD_IGNORE_THIS/ /' \endcond/

  1. include "begin_code.h" /'' Set up for C function definitions, even when

using C++ ''/ #ifdef __cplusplus extern "C" { #endif

  1. ifdef HAVE_ALLOCA #define SDL_stack_alloc(type, count)

(type)alloca(sizeof(type)(count)) #define SDL_stack_free(data)

  1. else #define SDL_stack_alloc(type, count)

(type)SDL_malloc(sizeof(type)(count)) #define SDL_stack_free(data) SDL_free(data) #endif

extern DECLSPEC void SDLCALL SDL_malloc(size_t size); extern DECLSPEC voidSDLCALL SDL_calloc(size_t nmemb, size_t size); extern DECLSPEC void SDLCALL SDL_realloc(voidmem, size_t size); extern DECLSPEC void SDLCALL SDL_free(void ''mem);

typedef void (SDLCALLSDL_malloc_func)(size_t size); typedef void (SDLCALLSDL_calloc_func)(size_t nmemb, size_t size); typedef void (SDLCALLSDL_realloc_func)(void mem, size_t size); typedef void (SDLCALLSDL_free_func)(void *mem);

/'''


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.