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

Function bases_count

tests/test_extraction_inheritance.c:104–111  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 1

run_inherit_caseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected