[ox/fs] Add new Directory type

This commit is contained in:
2018-04-23 22:51:49 -05:00
parent aeee05be89
commit 59cc34b4e8
15 changed files with 306 additions and 26 deletions

View File

@@ -15,6 +15,7 @@
#include "memops.hpp"
#include "new.hpp"
#include "random.hpp"
#include "stddef.hpp"
#include "strops.hpp"
#include "string.hpp"
#include "types.hpp"

13
deps/ox/src/ox/std/stddef.hpp vendored Normal file
View File

@@ -0,0 +1,13 @@
/*
* Copyright 2015 - 2018 gtalent2@gmail.com
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#pragma once
#if !defined(offsetof)
#define offsetof(type, member) __builtin_offsetof(type, member)
#endif

View File

@@ -66,11 +66,15 @@ struct ValErr {
this->error = error;
}
inline constexpr operator const T&() const {
return value;
}
inline constexpr operator T&() {
return value;
}
inline constexpr bool ok() {
inline constexpr bool ok() const {
return error == 0;
}