- More Documentation

- Vulkan Configuration Implementations
 - Fixed build errors on GCC and Clang
This commit is contained in:
2026-07-18 23:48:00 -04:00
parent ed381c4178
commit cf909624df
164 changed files with 19857 additions and 5872 deletions

View File

@@ -38,7 +38,7 @@
namespace fennec
{
constexpr const cstring fmode_translate(uint8_t mode) {
constexpr cstring fmode_translate(uint8_t mode) {
if (not file::is_valid(mode)) {
return "";
}
@@ -134,15 +134,11 @@ file::file(file&& file) noexcept
file& file::operator=(file&& file) noexcept {
assert(_error == nullptr, "Attempted Operation on a File in an Errored State");
close();
_handle = file._handle;
_path = file._path;
_mode = file._mode;
_error = file._error;
file._handle = nullptr;
file._path = "";
file._error = nullptr;
// Swap, if file is temporary it'll close the file for us
swap(_handle, file._handle);
swap(_path, file._path);
swap(_mode, file._mode);
swap(_error, file._error);
return *this;
}
@@ -1060,7 +1056,7 @@ bool file::putc(char c) {
}
int res;
if ((char)(res = fputc(c, _handle)) != c && res != EOF) {
if (char(res = fputc(c, _handle)) != c && res != EOF) {
_error = strerror(errno);
return true;
}
@@ -1078,7 +1074,7 @@ bool file::putwc(wchar_t c) {
}
int res;
if ((wchar_t)(res = fputwc(c, _handle)) != c && res != EOF) {
if (wchar_t(res = fputwc(c, _handle)) != c && res != EOF) {
_error = strerror(errno);
return true;
}