ProcessUtils.pkg 1.1 KB

12345678910111213141516171819202122
  1. $#include "ProcessUtils.h"
  2. /// Initialize the FPU to round-to-nearest, single precision mode.
  3. void InitFPU();
  4. /// Display an error dialog with the specified title and message.
  5. void ErrorDialog(const char* title, const char* message);
  6. /// Exit the application with an error message to the console.
  7. void ErrorExit(const char* message, int exitCode = EXIT_FAILURE);
  8. /// Open a console window.
  9. void OpenConsoleWindow();
  10. /// Print ASCII text to the console with a newline appended. Uses printf() to allow printing into the MSVC output window.
  11. void PrintLine(const char* str, bool error = false);
  12. /// Return previously parsed arguments.
  13. const Vector<String>& GetArguments();
  14. /// Read input from the console window. Return empty if no input.
  15. String GetConsoleInput();
  16. /// Return the runtime platform identifier. Currently either "Windows", "Linux", "Mac OS X" or "Android".
  17. String GetPlatform();
  18. /// Return the number of physical CPU cores.
  19. unsigned GetNumPhysicalCPUs();
  20. /// Return the number of logical CPUs (different from physical if hyperthreading is used.)
  21. unsigned GetNumLogicalCPUs();