this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Functionally stub ASI_NumberOfCPUs

...and by "functionally" I mean it won't return 0 and cause division by zero exceptions in Xcode.

+6 -1
+6
src/private-frameworks/AppleSystemInfo/src/AppleSystemInfo.c
··· 1 1 #include <AppleSystemInfo/AppleSystemInfo.h> 2 + #include <mach/host_info.h> 2 3 3 4 CFStringRef ASI_CopyComputerModelName(int arg0) { 4 5 return CFSTR("UNIMPLEMENTED"); 5 6 } 7 + 8 + int ASI_NumberOfCPUs(void) { 9 + // stub 10 + return 1; 11 + };
-1
src/private-frameworks/AppleSystemInfo/src/functions.c
··· 40 40 void* ASI_CopyMachineConfigurationCode(void) { if (verbose) puts("STUB: ASI_CopyMachineConfigurationCode called"); return NULL; } 41 41 void* ASI_CopyRAMDescription(void) { if (verbose) puts("STUB: ASI_CopyRAMDescription called"); return NULL; } 42 42 void* ASI_IsPlatformFeatureEnabled(void) { if (verbose) puts("STUB: ASI_IsPlatformFeatureEnabled called"); return NULL; } 43 - void* ASI_NumberOfCPUs(void) { if (verbose) puts("STUB: ASI_NumberOfCPUs called"); return NULL; } 44 43 void* ASI_PhysicalMemorySize(void) { if (verbose) puts("STUB: ASI_PhysicalMemorySize called"); return NULL; } 45 44 void* CopyIOPlatformSerialNumberString(void) { if (verbose) puts("STUB: CopyIOPlatformSerialNumberString called"); return NULL; } 46 45 void* CopyPropertyAsData(void) { if (verbose) puts("STUB: CopyPropertyAsData called"); return NULL; }