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

Function class_index

src/foundation/mem_core.c:162–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162static cbm_mem_class_t class_index(cbm_mem_class_t cls) {
163 return ((int)cls < 0 || (int)cls >= CBM_MEM_CLASS_COUNT) ? CBM_MEM_CLASS_OTHER : cls;
164}
165
166static void class_add(cbm_mem_class_t cls, size_t bytes, size_t blocks) {
167 cls = class_index(cls);

Callers 2

class_addFunction · 0.85
class_subFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected