Browse Source

fs_stat.hpp

nix-debugging
Antonio SJ Musumeci 2 days ago
parent
commit
56e6ec4eec
  1. 13
      src/die.hpp
  2. 1
      src/fs_stat.hpp

13
src/die.hpp

@ -0,0 +1,13 @@
#pragma once
#include "fmt/core.h"
[[noreturn]]
static
inline
void
die(std::string_view msg_)
{
fmt::println(stderr,"FATAL: {}",msg_);
std::abort();
}

1
src/fs_stat.hpp

@ -97,6 +97,7 @@ namespace fs
return rv;
}
die("Should never reach this");
return -ENOENT;
}
}
Loading…
Cancel
Save