MCPcopy Create free account
hub / github.com/NLPOptimize/flash-tokenizer / check_platform

Function check_platform

main.cpp:15–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13using namespace std;
14
15void check_platform() {
16
17#if defined(_WIN32) || defined(_WIN64)
18 const char* os = "windows";
19#elif defined(__linux__)
20 const char* os = "linux";
21#elif defined(__APPLE__)
22 const char *os = "osx";
23#endif
24#if defined(_MSC_VER)
25 const char* compiler = "msvc";
26#elif defined(__clang__)
27 const char* compiler = "clang";
28#elif defined(__GNUC__)
29 const char *compiler = "gcc";
30
31#endif
32 std::cout << os << "(" << compiler << ")" << std::endl;
33}
34
35std::vector<int> parseNumbersFromString(const std::string &input) {
36 std::vector<int> numbers;

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected