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

Function detect_os

src/cli/cli.c:8235–8243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8233
8234#ifdef CBM_CLI_ENABLE_TEST_API
8235static const char *detect_os(void) {
8236#ifdef _WIN32
8237 return "windows";
8238#elif defined(__APPLE__)
8239 return "darwin";
8240#else
8241 return "linux";
8242#endif
8243}
8244
8245static const char *detect_arch(void) {
8246#if defined(__aarch64__) || defined(_M_ARM64)

Callers 1

cbm_cmd_updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected