14void ShowMacDialog(std::string_view title, std::string_view message, std::string_view button_label);
29 if (p) ::CFRelease(p);
bool IsMonospaceFont(CFStringRef name)
Check if a font is a monospace font.
std::tuple< int, int, int > GetMacOSVersion()
Get the version of the MacOS we are running under.
uint64_t MacOSGetPhysicalMemory()
Ask OS how much RAM it has physically attached.
void MacOSSetThreadName(const std::string &name)
Set the name of the current thread for the debugger.
void ShowMacDialog(std::string_view title, std::string_view message, std::string_view button_label)
Helper function displaying a message the best possible way.
std::unique_ptr< typename std::remove_pointer< T >::type, CFDeleter< typename std::remove_pointer< T >::type > > CFAutoRelease
Specialisation of std::unique_ptr for CoreFoundation objects.
Deleter that calls CFRelease rather than deleting the pointer.