MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / detect_os

Function detect_os

src/cli/cli.c:7357–7365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7355
7356#ifdef CBM_CLI_ENABLE_TEST_API
7357static const char *detect_os(void) {
7358#ifdef _WIN32
7359 return "windows";
7360#elif defined(__APPLE__)
7361 return "darwin";
7362#else
7363 return "linux";
7364#endif
7365}
7366
7367static const char *detect_arch(void) {
7368#if defined(__aarch64__) || defined(_M_ARM64)

Callers 1

cbm_cmd_updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected