preprocess_c_code

Function preprocess_c_code 

Source
pub fn preprocess_c_code<S: AsRef<str>>(
    input: S,
    config: &PreprocessorConfig,
) -> Result<String, PreprocessError>
Expand description

Preprocess C code with the given configuration. This automatically defines target and compiler-specific macros.

ยงErrors

Returns PreprocessError if the input code has malformed directives, macro recursion limits are exceeded, or I/O errors occur during include resolution.