Skip to content

Libs/Utils/PlatformUtils.h

Namespaces

Name
shapeworks
User usage reporting (telemetry)

Classes

Name
class shapeworks::PlatformUtils
Platform utility functions.

Source code

namespace shapeworks {

class PlatformUtils {
 public:
  static bool is_windows() {
#ifdef _WIN32
    return true;
#endif
    return false;
  }

  static bool is_linux() {
#ifdef __linux__
    return true;
#endif
    return false;
  }

  static bool is_macos() {
#ifdef __APPLE__
    return true;
#endif
    return false;
  }
};

}  // namespace shapeworks

Updated on 2025-09-04 at 08:01:27 +0000