unloadApi

fnvoid unloadApi()

Releases the dynamically loaded library handle, if one was opened.

After calling unloadApi, all function pointers in lib become invalid. The P0 null-guard pattern in destructors ensures cleanup is still safe.