| 559 | } |
| 560 | |
| 561 | char *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 | |
| 574 | void cbm_preprocess_free(char *expanded) { |
| 575 | free(expanded); |
no test coverage detected