vault class

This commit is contained in:
2025-11-02 17:53:29 +01:00
parent f5f6db48b2
commit 3922456171
8 changed files with 228 additions and 88 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include <cstdint>
#include <string>
#define ASSERT(cond) \
if (!(cond)) { \
@@ -19,4 +20,9 @@ using u64 = uint64_t;
static_assert(sizeof(float) * 8 == 32);
using f32 = float;
static_assert(sizeof(double) * 8 == 64);
using f64 = double;
using f64 = double;
inline std::string path_to_filename(const std::string &path) {
u64 pos = path.find_last_of("/\\");
return (pos == std::string::npos) ? path : path.substr(pos + 1);
}