MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / DynamicLib_Load2

Function DynamicLib_Load2

src/Platform_Posix.c:1285–1290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1283const cc_string DynamicLib_Ext = String_FromConst(".dylib");
1284
1285void* DynamicLib_Load2(const cc_string* path) {
1286 cc_filepath str;
1287 Platform_EncodePath(&str, path);
1288 return NSAddImage(str.buffer, NSADDIMAGE_OPTION_WITH_SEARCHING |
1289 NSADDIMAGE_OPTION_RETURN_ON_ERROR);
1290}
1291
1292void* DynamicLib_Get2(void* lib, const char* name) {
1293 cc_string tmp; char tmpBuffer[128];

Callers

nothing calls this directly

Calls 1

Platform_EncodePathFunction · 0.70

Tested by

no test coverage detected