logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_LoadFunction - Look up the address of the named function in a shared object.

Availability

       This function is available since SDL 3.2.0.

Description

       This function pointer is no longer valid after calling SDL_UnloadObject().

       This  function  can  only  look up C function names. Other languages may have name mangling and intrinsic
       language support that varies from compiler to compiler.

       Make sure you declare your function pointers with the same  calling  convention  as  the  actual  library
       function. Your code will crash mysteriously if you do not do this.

       If the requested function doesn't exist, NULL is returned.

Function Parameters

handle a valid shared object handle returned by SDL_LoadObject().

       name   the name of the function to look up.

Name

       SDL_LoadFunction - Look up the address of the named function in a shared object.

Return Value

       Returns a pointer to the function or NULL on failure; call SDL_GetError() for more information.

See Also

SDL_LoadObject(3)

Simple Directmedia Layer                           SDL 3.2.20                                SDL_LoadFunction(3)

Synopsis

#include<SDL3/SDL_loadso.h>SDL_FunctionPointerSDL_LoadFunction(SDL_SharedObject*handle,constchar*name);

Thread Safety

       It is safe to call this function from any thread.

See Also