draconisplusplus/src/os/macos.cpp
2024-05-31 22:59:00 -04:00

21 lines
279 B
C++

#ifdef __APPLE__
#include <sys/sysctl.h>
#include <string>
#include "os.h"
uint64_t get_meminfo() {
uint64_t mem = 0;
size_t size = sizeof(mem);
sysctlbyname("hw.memsize", &mem, &size, nullptr, 0);
return mem;
}
std::string get_nowplaying() {
return "";
}
#endif