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

Function arg_int

tests/core/model_load_bench.cpp:23–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23int arg_int(int argc, char ** argv, const std::string & name, int fallback) {
24 if (const auto value = arg_value(argc, argv, name)) {
25 return std::stoi(*value);
26 }
27 return fallback;
28}
29
30std::filesystem::path required_path(int argc, char ** argv, const std::string & name) {
31 if (const auto value = arg_value(argc, argv, name)) {

Callers 1

mainFunction · 0.85

Calls 1

arg_valueFunction · 0.70

Tested by

no test coverage detected