Niffler.Library.library_suffix
You're seeing just the function
library_suffix
, go back to Niffler.Library module for more information.
Returns the current platforms default library suffix:
dll
on windowsdylib
on macso
on linux
Useful for dlopen() code to load the correct library:
@impl true
def on_load() do
"""
// loading the library with dlopen()
gmp = dlopen("libgmp.#{library_suffix()}", RTLD_LAZY);
if (!gmp) {
return "could not load libgmp";
}
"""
end