aboutsummaryrefslogtreecommitdiff
path: root/source/10-common/Utils.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-05-30 23:42:02 -0700
committerrtk0c <[email protected]>2022-05-30 23:42:02 -0700
commit8a0f2cd0b398ee0b7740e44a0e5fb2f75d090ccb (patch)
tree2838fd73313948f4db156b60c079468314eb1564 /source/10-common/Utils.hpp
parent3571627772b245e3e1a45b66e9a8fe4d50d06c8c (diff)
Changeset: 59 Integrate enum codegen into the actual project
Diffstat (limited to 'source/10-common/Utils.hpp')
-rw-r--r--source/10-common/Utils.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/10-common/Utils.hpp b/source/10-common/Utils.hpp
index 9f28aad..9560b57 100644
--- a/source/10-common/Utils.hpp
+++ b/source/10-common/Utils.hpp
@@ -5,6 +5,8 @@
#include <cstring>
#include <filesystem>
#include <glm/glm.hpp>
+#include <string>
+#include <string_view>
namespace Utils {
@@ -17,6 +19,8 @@ enum IoMode {
FILE* OpenCstdioFile(const std::filesystem::path& path, IoMode mode, bool binary = false);
FILE* OpenCstdioFile(const char* path, IoMode mode, bool binary = false);
+std::string ReadFileAsString(const std::filesystem::path& path);
+
constexpr float Abs(float v) noexcept {
return v < 0.0f ? -v : v;
}