From 8a0f2cd0b398ee0b7740e44a0e5fb2f75d090ccb Mon Sep 17 00:00:00 2001 From: rtk0c Date: Mon, 30 May 2022 23:42:02 -0700 Subject: Changeset: 59 Integrate enum codegen into the actual project --- source/10-common/Utils.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/10-common/Utils.hpp') 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 #include #include +#include +#include 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; } -- cgit v1.2.3-70-g09d2