Function try_patch_includes

Source
pub fn try_patch_includes<'h, E: Error>(
    lua: impl Into<Cow<'h, str>>,
    resolve: impl FnMut(&str) -> Result<String, E>,
) -> Result<Cow<'h, str>, E>
Expand description

Resolve the Pico-8 “#include path.p8” statements with possible errors.

If there are substitution errors, the first error will be returned.