目次 - SDL 3.0 API(機能別) - 標準ライブラリ - SDL_GetMemoryFunctions

SDL_GetMemoryFunctions

現在のSDLメモリ関数を得る

ヘッダ

SDL3/SDL_stdinc.h

構文

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

引数

SDL_malloc_func *malloc_funcmalloc関数の書込先へのポインタ
SDL_calloc_func *calloc_funccalloc関数の書込先へのポインタ
SDL_realloc_func *realloc_funcrealloc関数の書込先へのポインタ
SDL_free_func *free_funcfree関数の書込先へのポインタ

スレッドセーフ

この関数はロックしないため, バックグラウンドスレッドでSDL_SetMemoryFunctionsを同時に呼ばれる可能性がある場合は呼んではならない.

バージョン

SDL 3.2.0以降

関連項目

SDL Wikiへのリンク

SDL_GetMemoryFunctions - SDL Wiki