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

Function Process_StartOpen

src/Platform_Posix.c:939–949  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

937/* implemented in interop_ios.m */
938#elif defined CC_BUILD_MACOS
939cc_result Process_StartOpen(const cc_string* args) {
940 UInt8 str[NATIVE_STR_LEN];
941 CFURLRef urlCF;
942 int len;
943
944 len = String_EncodeUtf8(str, args);
945 urlCF = CFURLCreateWithBytes(kCFAllocatorDefault, str, len, kCFStringEncodingUTF8, NULL);
946 LSOpenCFURLRef(urlCF, NULL);
947 CFRelease(urlCF);
948 return 0;
949}
950#elif defined CC_BUILD_HAIKU || defined CC_BUILD_BEOS
951/* Implemented in interop_BeOS.cpp */
952#elif defined CC_BUILD_OS2

Callers

nothing calls this directly

Calls 4

String_EncodeUtf8Function · 0.85
Mem_SetFunction · 0.85
ShowErrorMessageFunction · 0.85
Process_RawStartFunction · 0.85

Tested by

no test coverage detected