diff options
| author | untodesu <kirill@untode.su> | 2025-12-26 23:17:56 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-12-26 23:17:56 +0500 |
| commit | 0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e (patch) | |
| tree | 90ddefa28b40b6384dd9618bb7573704de2733a9 /src/core/utils | |
| parent | 6bb4233d5b2a1688e63c947542e92ec5d5a857a6 (diff) | |
| download | voxelius-0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e.tar.bz2 voxelius-0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e.zip | |
Add include guards and header comments to sources
Diffstat (limited to 'src/core/utils')
| -rw-r--r-- | src/core/utils/epoch.cc | 5 | ||||
| -rw-r--r-- | src/core/utils/epoch.hh | 9 | ||||
| -rw-r--r-- | src/core/utils/string.cc | 5 | ||||
| -rw-r--r-- | src/core/utils/string.hh | 9 |
4 files changed, 28 insertions, 0 deletions
diff --git a/src/core/utils/epoch.cc b/src/core/utils/epoch.cc index 36bdb79..9d66399 100644 --- a/src/core/utils/epoch.cc +++ b/src/core/utils/epoch.cc @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: epoch.cc +// Description: UNIX time utilities + #include "core/pch.hh" #include "core/utils/epoch.hh" diff --git a/src/core/utils/epoch.hh b/src/core/utils/epoch.hh index 4bf5460..5210e22 100644 --- a/src/core/utils/epoch.hh +++ b/src/core/utils/epoch.hh @@ -1,3 +1,10 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: epoch.hh +// Description: UNIX time utilities + +#ifndef CORE_UTILS_EPOCH_HH +#define CORE_UTILS_EPOCH_HH #pragma once namespace utils @@ -13,3 +20,5 @@ std::int64_t signed_unix_seconds(void); std::int64_t signed_unix_milliseconds(void); std::int64_t signed_unix_microseconds(void); } // namespace utils + +#endif diff --git a/src/core/utils/string.cc b/src/core/utils/string.cc index dd3d567..154b04b 100644 --- a/src/core/utils/string.cc +++ b/src/core/utils/string.cc @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: string.cc +// Description: String utilities + #include "core/pch.hh" #include "core/utils/string.hh" diff --git a/src/core/utils/string.hh b/src/core/utils/string.hh index 827c3ca..36c83ce 100644 --- a/src/core/utils/string.hh +++ b/src/core/utils/string.hh @@ -1,3 +1,10 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: string.hh +// Description: String utilities + +#ifndef CORE_UTILS_STRING_HH +#define CORE_UTILS_STRING_HH #pragma once namespace utils @@ -15,3 +22,5 @@ namespace utils { std::string trim_whitespace(const std::string& string); } // namespace utils + +#endif |
