macro_rules! local_file {
($this:expr, $local_path:expr) => { ... };
}
Expand description
Used in tests to calculate local file path relative to the source file.
Requires call to file!()
as a first parameter.
ยงExample
MyParser::parse_file(local_file!(file!(), "my_local_file.txt"));