summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/config/boolean.hh4
-rw-r--r--core/config/ivalue.hh4
-rw-r--r--core/config/number.hh4
-rw-r--r--core/config/string.hh4
-rw-r--r--core/io/buffer.hh5
-rw-r--r--core/io/cmdline.hh4
-rw-r--r--core/io/config_map.hh4
-rw-r--r--core/math/aabb.hh4
-rw-r--r--core/math/angles.hh4
-rw-r--r--core/math/concepts.hh4
-rw-r--r--core/math/constexpr.hh4
-rw-r--r--core/math/crc64.hh4
-rw-r--r--core/math/randomizer.hh4
-rw-r--r--core/math/vectors.hh4
-rw-r--r--core/pch.hh4
-rw-r--r--core/resource/image.hh4
-rw-r--r--core/resource/resource.hh4
-rw-r--r--core/threading.hh4
-rw-r--r--core/utils/epoch.hh4
-rw-r--r--core/utils/physfs.hh4
-rw-r--r--core/utils/string.hh4
-rw-r--r--core/version.hh4
22 files changed, 0 insertions, 89 deletions
diff --git a/core/config/boolean.hh b/core/config/boolean.hh
index 2e9855f..cfd8b0b 100644
--- a/core/config/boolean.hh
+++ b/core/config/boolean.hh
@@ -1,5 +1,3 @@
-#ifndef CORE_CONFIG_BOOLEAN_HH
-#define CORE_CONFIG_BOOLEAN_HH 1
#pragma once
#include "core/config/ivalue.hh"
@@ -25,5 +23,3 @@ public:
static bool from_string(std::string_view value);
};
} // namespace config
-
-#endif // CORE_CONFIG_BOOLEAN_HH
diff --git a/core/config/ivalue.hh b/core/config/ivalue.hh
index 97d87dc..13e9a3a 100644
--- a/core/config/ivalue.hh
+++ b/core/config/ivalue.hh
@@ -1,5 +1,3 @@
-#ifndef CORE_CONFIG_IVALUE_HH
-#define CORE_CONFIG_IVALUE_HH 1
#pragma once
namespace config
@@ -11,5 +9,3 @@ public:
virtual std::string_view get(void) const = 0;
};
} // namespace config
-
-#endif // CORE_CONFIG_IVALUE_HH
diff --git a/core/config/number.hh b/core/config/number.hh
index 3455910..45d4773 100644
--- a/core/config/number.hh
+++ b/core/config/number.hh
@@ -1,5 +1,3 @@
-#ifndef CORE_CONFIG_NUMBER_HH
-#define CORE_CONFIG_NUMBER_HH 1
#pragma once
#include "core/config/ivalue.hh"
@@ -130,5 +128,3 @@ 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 // CORE_CONFIG_NUMBER_HH
diff --git a/core/config/string.hh b/core/config/string.hh
index 772c330..8fd3901 100644
--- a/core/config/string.hh
+++ b/core/config/string.hh
@@ -1,5 +1,3 @@
-#ifndef CORE_CONFIG_STRING_HH
-#define CORE_CONFIG_STRING_HH 1
#pragma once
#include "core/config/ivalue.hh"
@@ -31,5 +29,3 @@ constexpr const char* config::String::c_str(void) const noexcept
{
return m_value.c_str();
}
-
-#endif // CORE_CONFIG_STRING_HH
diff --git a/core/io/buffer.hh b/core/io/buffer.hh
index c301204..96a37b1 100644
--- a/core/io/buffer.hh
+++ b/core/io/buffer.hh
@@ -1,6 +1,3 @@
-#ifndef CORE_IO_BUFFER_HH
-#define CORE_IO_BUFFER_HH 1
-
namespace io
{
class ReadBuffer final {
@@ -89,5 +86,3 @@ io::WriteBuffer& io::WriteBuffer::operator<<(const T value)
write<T>(value);
return *this;
}
-
-#endif // CORE_BUFFER_HH
diff --git a/core/io/cmdline.hh b/core/io/cmdline.hh
index 8b2b4ee..e90433c 100644
--- a/core/io/cmdline.hh
+++ b/core/io/cmdline.hh
@@ -1,5 +1,3 @@
-#ifndef CORE_IO_CMDLINE_HH
-#define CORE_IO_CMDLINE_HH 1
#pragma once
namespace io::cmdline
@@ -11,5 +9,3 @@ std::string_view get(std::string_view option, std::string_view fallback = "");
const char* get_cstr(std::string_view option, const char* fallback = nullptr);
bool contains(std::string_view option);
} // namespace io::cmdline
-
-#endif // CORE_IO_CMDLINE_HH
diff --git a/core/io/config_map.hh b/core/io/config_map.hh
index 7ab7543..b0cd579 100644
--- a/core/io/config_map.hh
+++ b/core/io/config_map.hh
@@ -1,5 +1,3 @@
-#ifndef CORE_CONFIG_MAP_HH
-#define CORE_CONFIG_MAP_HH 1
#pragma once
namespace config
@@ -29,5 +27,3 @@ private:
std::unordered_map<std::string, config::IValue*> m_values;
};
} // namespace io
-
-#endif // CORE_CONFIG_MAP_HH
diff --git a/core/math/aabb.hh b/core/math/aabb.hh
index 943eeee..b843cd9 100644
--- a/core/math/aabb.hh
+++ b/core/math/aabb.hh
@@ -1,5 +1,3 @@
-#ifndef CORE_MATH_AABB_HH
-#define CORE_MATH_AABB_HH 1
#pragma once
namespace math
@@ -28,5 +26,3 @@ public:
glm::fvec3 max;
};
} // namespace math
-
-#endif // CORE_MATH_AABB_HH
diff --git a/core/math/angles.hh b/core/math/angles.hh
index 868160b..174f320 100644
--- a/core/math/angles.hh
+++ b/core/math/angles.hh
@@ -1,5 +1,3 @@
-#ifndef CORE_MATH_ANGLES_HH
-#define CORE_MATH_ANGLES_HH 1
#pragma once
#include "core/math/constexpr.hh"
@@ -103,5 +101,3 @@ inline void math::vectors(const glm::fvec3& angles, glm::fvec3* forward, glm::fv
up->z = nsv.x * ncv.y * pcv.z + psv.y * psv.z;
}
}
-
-#endif // CORE_MATH_ANGLES_HH
diff --git a/core/math/concepts.hh b/core/math/concepts.hh
index 1b9beb9..70859c2 100644
--- a/core/math/concepts.hh
+++ b/core/math/concepts.hh
@@ -1,5 +1,3 @@
-#ifndef CORE_MATH_CONCEPTS_HH
-#define CORE_MATH_CONCEPTS_HH 1
#pragma once
namespace math
@@ -11,5 +9,3 @@ concept Integer = std::is_integral_v<T>;
template<typename T>
concept FloatingPoint = std::is_floating_point_v<T>;
} // namespace math
-
-#endif // CORE_MATH_CONCEPTS_HH
diff --git a/core/math/constexpr.hh b/core/math/constexpr.hh
index 263a6e8..65dbbbf 100644
--- a/core/math/constexpr.hh
+++ b/core/math/constexpr.hh
@@ -1,5 +1,3 @@
-#ifndef CORE_MATH_CONSTEXPR_HH
-#define CORE_MATH_CONSTEXPR_HH 1
#pragma once
#include "core/math/concepts.hh"
@@ -198,5 +196,3 @@ constexpr static inline const T math::smoothstep(const T x, const T y, const F a
const F t = math::clamp<F>((a - x) / (y - x), F(0), F(1));
return static_cast<T>(t * t * (F(3) - F(2) * t));
}
-
-#endif // CORE_MATH_CONSTEXPR_HH
diff --git a/core/math/crc64.hh b/core/math/crc64.hh
index ac2c4b6..4dc484d 100644
--- a/core/math/crc64.hh
+++ b/core/math/crc64.hh
@@ -1,5 +1,3 @@
-#ifndef CORE_MATH_CRC64_HH
-#define CORE_MATH_CRC64_HH 1
#pragma once
namespace math
@@ -8,5 +6,3 @@ std::uint64_t crc64(const void* buffer, std::size_t size, std::uint64_t combine
std::uint64_t crc64(const std::vector<std::byte>& buffer, std::uint64_t combine = UINT64_C(0));
std::uint64_t crc64(const std::string& buffer, std::uint64_t combine = UINT64_C(0));
} // namespace math
-
-#endif // CORE_MATH_CRC64_HH
diff --git a/core/math/randomizer.hh b/core/math/randomizer.hh
index 206af42..04665f9 100644
--- a/core/math/randomizer.hh
+++ b/core/math/randomizer.hh
@@ -1,5 +1,3 @@
-#ifndef CORE_MATH_RANDOMIZER_HH
-#define CORE_MATH_RANDOMIZER_HH 1
#pragma once
namespace math
@@ -56,5 +54,3 @@ inline void math::Randomizer<T>::clear(void)
m_vector.clear();
m_dist = std::uniform_int_distribution<std::size_t>(0, 0);
}
-
-#endif // CORE_MATH_RANDOMIZER_HH
diff --git a/core/math/vectors.hh b/core/math/vectors.hh
index 06d1bcf..73c9ab0 100644
--- a/core/math/vectors.hh
+++ b/core/math/vectors.hh
@@ -1,5 +1,3 @@
-#ifndef CORE_MATH_VECTORS_HH
-#define CORE_MATH_VECTORS_HH 1
#pragma once
#include "core/math/concepts.hh"
@@ -43,5 +41,3 @@ constexpr static inline const T math::distance2(const glm::vec<3, T>& vector_a,
{
return math::length2(vector_a - vector_b);
}
-
-#endif // CORE_MATH_VECTORS_HH
diff --git a/core/pch.hh b/core/pch.hh
index dedd310..17417a5 100644
--- a/core/pch.hh
+++ b/core/pch.hh
@@ -1,5 +1,3 @@
-#ifndef CORE_PCH_HH
-#define CORE_PCH_HH 1
#pragma once
#include <cinttypes>
@@ -49,5 +47,3 @@
#include <stb_image.h>
#include <stb_image_write.h>
-
-#endif // CORE_PCH_HH
diff --git a/core/resource/image.hh b/core/resource/image.hh
index b62fcbb..575591f 100644
--- a/core/resource/image.hh
+++ b/core/resource/image.hh
@@ -1,5 +1,3 @@
-#ifndef CORE_RESOURCE_IMAGE_HH
-#define CORE_RESOURCE_IMAGE_HH 1
#pragma once
constexpr static unsigned int IMAGE_LOAD_GRAY = 0x0001U;
@@ -11,5 +9,3 @@ struct Image final {
stbi_uc* pixels;
glm::ivec2 size;
};
-
-#endif // CORE_RESOURCE_IMAGE_HH
diff --git a/core/resource/resource.hh b/core/resource/resource.hh
index ad8d944..105c7ff 100644
--- a/core/resource/resource.hh
+++ b/core/resource/resource.hh
@@ -1,5 +1,3 @@
-#ifndef CORE_RESOURCE_RESOURCE_HH
-#define CORE_RESOURCE_RESOURCE_HH 1
#pragma once
template<typename T>
@@ -53,5 +51,3 @@ resource_ptr<T> resource::find(std::string_view name)
auto result = resource::detail::find_resource(typeid(T), name);
return std::reinterpret_pointer_cast<const T>(result);
}
-
-#endif // CORE_RESOURCE_RESOURCE_HH
diff --git a/core/threading.hh b/core/threading.hh
index bd359ad..14f17f8 100644
--- a/core/threading.hh
+++ b/core/threading.hh
@@ -1,5 +1,3 @@
-#ifndef CORE_THREADING_HH
-#define CORE_THREADING_HH 1
#pragma once
enum class task_status : unsigned int {
@@ -46,5 +44,3 @@ inline void threading::submit(AT&&... args)
{
threading::detail::submit_new(new T(args...));
}
-
-#endif // CORE_THREADING_HH
diff --git a/core/utils/epoch.hh b/core/utils/epoch.hh
index 1cd7f43..4bf5460 100644
--- a/core/utils/epoch.hh
+++ b/core/utils/epoch.hh
@@ -1,5 +1,3 @@
-#ifndef CORE_UTILS_EPOCH_HH
-#define CORE_UTILS_EPOCH_HH 1
#pragma once
namespace utils
@@ -15,5 +13,3 @@ std::int64_t signed_unix_seconds(void);
std::int64_t signed_unix_milliseconds(void);
std::int64_t signed_unix_microseconds(void);
} // namespace utils
-
-#endif // CORE_UTILS_EPOCH_HH
diff --git a/core/utils/physfs.hh b/core/utils/physfs.hh
index df5e392..4af94dc 100644
--- a/core/utils/physfs.hh
+++ b/core/utils/physfs.hh
@@ -1,5 +1,3 @@
-#ifndef UTILS_PHYSFS_HH
-#define UTILS_PHYSFS_HH 1
#pragma once
namespace utils
@@ -14,5 +12,3 @@ namespace utils
{
std::string_view physfs_error(void);
} // namespace utils
-
-#endif // UTILS_PHYSFS_HH
diff --git a/core/utils/string.hh b/core/utils/string.hh
index 3ba56a0..827c3ca 100644
--- a/core/utils/string.hh
+++ b/core/utils/string.hh
@@ -1,5 +1,3 @@
-#ifndef CORE_UTILS_STRING_HH
-#define CORE_UTILS_STRING_HH 1
#pragma once
namespace utils
@@ -17,5 +15,3 @@ namespace utils
{
std::string trim_whitespace(const std::string& string);
} // namespace utils
-
-#endif // CORE_UTILS_STRING_HH
diff --git a/core/version.hh b/core/version.hh
index b84a2fc..fc33374 100644
--- a/core/version.hh
+++ b/core/version.hh
@@ -1,5 +1,3 @@
-#ifndef CORE_VERSION_HH
-#define CORE_VERSION_HH 1
#pragma once
namespace version
@@ -14,5 +12,3 @@ namespace version
extern const std::string_view commit;
extern const std::string_view semver;
} // namespace version
-
-#endif // CORE_VERSION_HH