ProcessUtils.pkg 890 B

1234567891011121314151617181920212223
  1. $#include "ProcessUtils.h"
  2. /// Display an error dialog with the specified title and message.
  3. void ErrorDialog(const char* title, const char* message);
  4. /// Exit the application with an error message to the console.
  5. void ErrorExit(const char* message, int exitCode = EXIT_FAILURE);
  6. /// Open a console window.
  7. void OpenConsoleWindow();
  8. /// Print ASCII text to the console with a newline appended. Uses printf() to allow printing into the MSVC output window.
  9. void PrintLine(const char* str, bool error = false);
  10. /// Return the runtime platform identifier. Currently either "Windows", "Linux", "Mac OS X" or "Android".
  11. const char* GetPlatformCString @ GetPlatform();
  12. /// Return the number of physical CPU cores.
  13. unsigned GetNumPhysicalCPUs();
  14. /// Return the number of logical CPUs (different from physical if hyperthreading is used.)
  15. unsigned GetNumLogicalCPUs();