fs_stat.hpp

This commit is contained in:
Antonio SJ Musumeci
2025-11-21 13:43:09 -06:00
parent 1bc965d4a6
commit 56e6ec4eec
2 changed files with 14 additions and 0 deletions
+13
View File
@@ -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
View File
@@ -97,6 +97,7 @@ namespace fs
return rv;
}
die("Should never reach this");
return -ENOENT;
}
}