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

Function c_operator_param_count

internal/cbm/lsp/c_lsp.c:4157–4167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4155}
4156
4157static int c_operator_param_count(const CBMRegisteredFunc *candidate) {
4158 if (!candidate || !candidate->signature || candidate->signature->kind != CBM_TYPE_FUNC) {
4159 return -1;
4160 }
4161 int count = 0;
4162 const CBMType *const *params = candidate->signature->data.func.param_types;
4163 while (params && params[count]) {
4164 count++;
4165 }
4166 return count;
4167}
4168
4169static bool c_operator_signature_matches(CLSPContext *ctx, const CBMRegisteredFunc *candidate,
4170 const CBMType *const *actuals, int actual_count) {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected