thats why it needed testing
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package funkin.native;
|
||||
|
||||
#if linux
|
||||
@:cppFileCode("#include <stdio.h>")
|
||||
class Linux {
|
||||
@:functionCode('
|
||||
FILE *meminfo = fopen("/proc/meminfo", "r");
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package funkin.native;
|
||||
|
||||
#if mac
|
||||
@:cppFileCode("#include <sys/sysctl.h>")
|
||||
class Mac {
|
||||
@:functionCode('
|
||||
int mib [] = { CTL_HW, HW_MEMSIZE };
|
||||
|
||||
Reference in New Issue
Block a user