rsked/respath.cc
/// If input path inp is relative, base it in the base directory.
/// If inp is already absolute, just return it.
///
If input path inp is relative, base it in the base directory.
If inp is already absolute, just return it.
If input path inp is relative base it in the base directory . If inp is already absolute just return it .
static void
maybe_base(const fs::path &inp, const fs::path &basedir, fs::path &outp)
{
    if (inp.is_relative()) {
        outp = fs::absolute( inp, basedir );
    } else {
        outp = inp;
    }
}
static void maybe_base ( const fs :: path & inp , const fs :: path & basedir , fs :: path & outp ) { if ( inp . is_relative ( ) ) { outp = fs :: absolute ( inp , basedir ) ; } else { outp = inp ; } }
If input path inp is relative, base it in the base directory.
If input path inp is relative base it in the base directory .