[][src]Macro ari::path

macro_rules! path {
    () => { ... };
    ($initial: expr) => { ... };
    ($initial: expr, $($extra: expr),* $(,)*) => { ... };
}

creates a path from several components. all components except for the first are treated as relative paths, even if they begin with a leading slash.

examples.


let path = path!["/var", "/bin", "/ari/hello.so"];

assert_eq!(path, PathBuf::from("/var/bin/ari/hello.so"));