[ox/fs] Add new Directory type
This commit is contained in:
1
deps/ox/src/ox/std/std.hpp
vendored
1
deps/ox/src/ox/std/std.hpp
vendored
@@ -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
13
deps/ox/src/ox/std/stddef.hpp
vendored
Normal 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
|
6
deps/ox/src/ox/std/types.hpp
vendored
6
deps/ox/src/ox/std/types.hpp
vendored
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user