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

Function require_positive

src/framework/modules/positional_modules.cpp:9–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8namespace engine::modules {
9namespace {
10
11void require_positive(int64_t value, const char * name) {
12 if (value <= 0) {
13 throw std::runtime_error(std::string(name) + " must be positive");
14 }
15}
16

Callers 1

RoPEModuleMethod · 0.70

Calls 1

stringFunction · 0.50

Tested by

no test coverage detected