MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getPlatformString

Function getPlatformString

libs/dummy/src/dummy/main.cpp:17–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15#include <phmap/phmap.h>
16
17static std::string getPlatformString() {
18 switch (snap::kPlatform) {
19 case snap::Platform::Android:
20 return "android";
21 case snap::Platform::Ios:
22 return "ios";
23 case snap::Platform::MacOs:
24 return "macos";
25 case snap::Platform::DesktopLinux:
26 return "linux";
27 case snap::Platform::Wasm:
28 return "macos";
29 }
30}
31
32int main(int argc, const char** argv) {
33 SC_ASSERT(true);

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected