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

Function bases_count

tests/test_extraction_inheritance.c:108–115  ·  view source on GitHub ↗

Count entries in a NULL-terminated base_classes array. */

Source from the content-addressed store, hash-verified

106
107/* Count entries in a NULL-terminated base_classes array. */
108static int bases_count(CBMDefinition *d) {
109 if (!d->base_classes)
110 return 0;
111 int n = 0;
112 for (const char **b = d->base_classes; *b; b++)
113 n++;
114 return n;
115}
116
117/* ── Table-driven case type ─────────────────────────────────────── */
118

Callers 1

run_inherit_caseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected