#pragma once #include #include namespace Utils { enum IoMode { Read, WriteTruncate, WriteAppend, }; FILE* OpenCstdioFile(const std::filesystem::path& path, IoMode mode, bool binary = false); FILE* OpenCstdioFile(const char* path, IoMode mode, bool binary = false); constexpr float Abs(float v) noexcept { return v < 0.0f ? -v : v; } } // namespace Utils