summaryrefslogtreecommitdiffstats
path: root/src/core/config/number.hh
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-12-26 23:17:56 +0500
committeruntodesu <kirill@untode.su>2025-12-26 23:17:56 +0500
commit0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e (patch)
tree90ddefa28b40b6384dd9618bb7573704de2733a9 /src/core/config/number.hh
parent6bb4233d5b2a1688e63c947542e92ec5d5a857a6 (diff)
downloadvoxelius-0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e.tar.bz2
voxelius-0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e.zip
Add include guards and header comments to sources
Diffstat (limited to 'src/core/config/number.hh')
-rw-r--r--src/core/config/number.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/config/number.hh b/src/core/config/number.hh
index 4f185e1..eb1f462 100644
--- a/src/core/config/number.hh
+++ b/src/core/config/number.hh
@@ -1,3 +1,10 @@
+// SPDX-License-Identifier: BSD-2-Clause
+// Copyright (c) 2025 Kirill Dmitrievich
+// File: number.hh
+// Description: Arithmetic config value
+
+#ifndef CORE_CONFIG_NUMBER_HH
+#define CORE_CONFIG_NUMBER_HH
#pragma once
#include "core/config/ivalue.hh"
@@ -128,3 +135,5 @@ inline void config::Number<T>::set_limits(T min_value, T max_value)
m_value = std::clamp(m_value, m_min_value, m_max_value);
m_string = std::to_string(m_value);
}
+
+#endif