MCPcopy Create free account
hub / github.com/DFHack/dfhack / ClosePlugin

Function ClosePlugin

library/PlugLoad.cpp:82–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80 return (void *) get_function_address(plugin, function);
81 }
82 bool ClosePlugin (DFLibrary * plugin)
83 {
84 int res = close_library(plugin);
85 if (res != 0)
86 {
87 auto error = get_error();
88 WARN(plugins).print("ClosePlugin failed: {}\n", error);
89 }
90 return (res == 0);
91
92 }
93}

Callers 4

unloadMethod · 0.85
cleanupMethod · 0.85
cleanupMethod · 0.85

Calls 2

get_errorFunction · 0.85
printMethod · 0.45

Tested by

no test coverage detected