SDL_UnloadObject(3)

πŸ’… SDL_UnloadObject(3) β€” bestie edition

okay so this is one of the SDL3 FUNCTIONS pages, and today we're talking about SDL_UnloadObject(3). yes the name is the same as the title, we love a consistent queen ✨


🌸 NAME 🌸

SDL_UnloadObject β€” literally just yeets a shared object out of memory. bye boo πŸ‘‹


✨ SYNOPSIS ✨

#include <SDL3/SDL_loadso.h>

void SDL_UnloadObject(SDL_SharedObject *handle);

πŸŽ€ DESCRIPTION πŸŽ€

so here's the tea, and it's kind of important bestie: once you unload this object, any pointers you looked up from it through SDL_LoadFunction() are no longer valid. like, they're done. expired. not the vibe. do not touch them after this, fr fr πŸ’€


πŸ¦‹ FUNCTION PARAMETERS πŸ¦‹

  • handle β€” a valid shared object handle, and it has to be one that came back from SDL_LoadObject(). no making up handles, no passing randoms, we're not doing that πŸ™ˆ

🧡 THREAD SAFETY 🧡

she's chill like that β€” it's safe to call this function from any thread. no cap. go off wherever you want 🫢


🌈 AVAILABILITY 🌈

this icon has been serving since SDL 3.2.0 πŸ‘‘


πŸ’– SEE ALSO πŸ’–

  • SDL_LoadObject(3) β€” the one that brings it in, because every unload needs its load πŸ’«

and that's the whole page, bestie! πŸ“ this was Simple Directmedia Layer, version SDL 3.4.18, dated SDL_UnloadObject(3) β€” mwah, slay, periodt πŸ’…πŸŽ€

πŸ“¦ where this page comes from