macos
This commit is contained in:
parent
ccd20f5461
commit
8709ef9de9
4 changed files with 330 additions and 203 deletions
|
@ -99,6 +99,7 @@ namespace util {
|
|||
: message(std::format("{}: {}", context, std::system_category().message(errno))), location(loc) {
|
||||
using namespace matchit;
|
||||
using enum DracErrorCode;
|
||||
|
||||
code = match(errno)(
|
||||
is | EACCES = PermissionDenied,
|
||||
is | ENOENT = NotFound,
|
||||
|
|
|
@ -11,8 +11,6 @@
|
|||
#include <utility> // std::pair (Pair)
|
||||
#include <vector> // std::vector (Vec)
|
||||
|
||||
#include "include/matchit.h"
|
||||
|
||||
namespace util::types {
|
||||
using u8 = std::uint8_t; ///< 8-bit unsigned integer.
|
||||
using u16 = std::uint16_t; ///< 16-bit unsigned integer.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue