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

Function cbm_preprocess

internal/cbm/preprocessor.cpp:561–572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559}
560
561char *cbm_preprocess(const char *source, int source_len, const char *filename,
562 const char **extra_defines, const char **include_paths, int cpp_mode) {
563 CBMPreprocessedSource *pp = cbm_preprocess_with_map(source, source_len, filename, extra_defines,
564 include_paths, cpp_mode);
565 if (!pp) {
566 return NULL;
567 }
568 char *out = pp->source;
569 pp->source = NULL;
570 cbm_preprocessed_source_free(pp);
571 return out;
572}
573
574void cbm_preprocess_free(char *expanded) {
575 free(expanded);

Callers 1

test_c_lsp.cFile · 0.85

Calls 2

cbm_preprocess_with_mapFunction · 0.85

Tested by

no test coverage detected