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

Function budget_doc_int

tests/test_mcp.c:21314–21317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21312}
21313
21314static int budget_doc_int(yyjson_doc *doc, const char *key, int missing) {
21315 yyjson_val *val = doc ? yyjson_obj_get(yyjson_doc_get_root(doc), key) : NULL;
21316 return val && yyjson_is_int(val) ? (int)yyjson_get_int(val) : missing;
21317}
21318
21319/* Decision A (#1997 #832): an attempt that stays over the memory budget after
21320 * back-pressure fails WHOLE and the response says so — reason, numbers, hint,

Callers 1

test_mcp.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected