MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / set_process_env

Function set_process_env

tests/chatterbox/chatterbox_warm_bench.cpp:118–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void set_process_env(const char * key, const std::string & value) {
119#if defined(_WIN32)
120 if (_putenv_s(key, value.c_str()) != 0) {
121 throw std::runtime_error("failed to set environment variable: " + std::string(key));
122 }
123#else
124 if (setenv(key, value.c_str(), 1) != 0) {
125 throw std::runtime_error("failed to set environment variable: " + std::string(key));
126 }
127#endif
128}
129
130engine::runtime::TaskRequest make_request(
131 const std::string & text,

Callers 1

mainFunction · 0.70

Calls 1

stringFunction · 0.50

Tested by

no test coverage detected