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

Function float_arg

tests/chatterbox/chatterbox_warm_bench.cpp:48–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48float float_arg(int argc, char ** argv, const std::string & name, float fallback) {
49 return std::stof(arg_value(argc, argv, name, std::to_string(fallback)));
50}
51
52bool bool_arg(int argc, char ** argv, const std::string & name, bool fallback) {
53 const std::string value = arg_value(argc, argv, name, fallback ? "true" : "false");

Callers 1

mainFunction · 0.70

Calls 2

arg_valueFunction · 0.70
to_stringFunction · 0.50

Tested by

no test coverage detected