From 0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e Mon Sep 17 00:00:00 2001 From: untodesu Date: Fri, 26 Dec 2025 23:17:56 +0500 Subject: Add include guards and header comments to sources --- src/core/io/physfs.hh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'src/core/io/physfs.hh') diff --git a/src/core/io/physfs.hh b/src/core/io/physfs.hh index 88f97de..8cf84be 100644 --- a/src/core/io/physfs.hh +++ b/src/core/io/physfs.hh @@ -1,8 +1,23 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: physfs.hh +// Description: PhysFS utilities + +#ifndef CORE_IO_PHYSFS_HH +#define CORE_IO_PHYSFS_HH #pragma once +namespace physfs +{ bool read_file(std::string_view path, std::vector& buffer); bool read_file(std::string_view path, std::string& buffer); bool write_file(std::string_view path, const std::vector& buffer); bool write_file(std::string_view path, const std::string& buffer); +} // namespace physfs + +namespace physfs +{ +std::string_view last_error(void); +} // namespace physfs -std::string_view physfs_error(void); +#endif -- cgit