Przeglądaj źródła

Replace include header guards with pragma once

- Improves developer experience.
- Supported in all major compilers.
Michael Ragazzon 4 tygodni temu
rodzic
commit
8790907d0e
100 zmienionych plików z 154 dodań i 386 usunięć
  1. 1 4
      Backends/RmlUi_Backend.h
  2. 1 4
      Backends/RmlUi_BackwardCompatible/RmlUi_Renderer_BackwardCompatible_GL2.h
  3. 1 4
      Backends/RmlUi_BackwardCompatible/RmlUi_Renderer_BackwardCompatible_GL3.h
  4. 1 4
      Backends/RmlUi_Include_Windows.h
  5. 1 4
      Backends/RmlUi_Include_Xlib.h
  6. 1 4
      Backends/RmlUi_Platform_GLFW.h
  7. 1 4
      Backends/RmlUi_Platform_SDL.h
  8. 1 4
      Backends/RmlUi_Platform_SFML.h
  9. 1 4
      Backends/RmlUi_Platform_Win32.h
  10. 1 4
      Backends/RmlUi_Platform_X11.h
  11. 1 4
      Backends/RmlUi_Renderer_GL2.h
  12. 1 4
      Backends/RmlUi_Renderer_GL3.h
  13. 1 4
      Backends/RmlUi_Renderer_SDL.h
  14. 1 4
      Backends/RmlUi_Renderer_SDL_GPU.h
  15. 1 4
      Backends/RmlUi_Renderer_VK.h
  16. 55 58
      Include/RmlUi/Config/Config.h
  17. 1 4
      Include/RmlUi/Core.h
  18. 1 3
      Include/RmlUi/Core/Animation.h
  19. 1 3
      Include/RmlUi/Core/BaseXMLParser.h
  20. 1 3
      Include/RmlUi/Core/Box.h
  21. 1 3
      Include/RmlUi/Core/CallbackTexture.h
  22. 1 4
      Include/RmlUi/Core/Colour.h
  23. 1 4
      Include/RmlUi/Core/CompiledFilterShader.h
  24. 1 3
      Include/RmlUi/Core/ComputedValues.h
  25. 1 3
      Include/RmlUi/Core/Context.h
  26. 1 3
      Include/RmlUi/Core/ContextInstancer.h
  27. 1 3
      Include/RmlUi/Core/ConvolutionFilter.h
  28. 1 4
      Include/RmlUi/Core/Core.h
  29. 1 3
      Include/RmlUi/Core/DataModelHandle.h
  30. 1 3
      Include/RmlUi/Core/DataStructHandle.h
  31. 1 3
      Include/RmlUi/Core/DataTypeRegister.h
  32. 1 3
      Include/RmlUi/Core/DataTypes.h
  33. 1 3
      Include/RmlUi/Core/DataVariable.h
  34. 1 4
      Include/RmlUi/Core/Debug.h
  35. 1 3
      Include/RmlUi/Core/DecorationTypes.h
  36. 1 3
      Include/RmlUi/Core/Decorator.h
  37. 1 3
      Include/RmlUi/Core/Dictionary.h
  38. 1 3
      Include/RmlUi/Core/EffectSpecification.h
  39. 1 4
      Include/RmlUi/Core/Element.h
  40. 1 3
      Include/RmlUi/Core/ElementDocument.h
  41. 1 3
      Include/RmlUi/Core/ElementInstancer.h
  42. 1 3
      Include/RmlUi/Core/ElementScroll.h
  43. 1 3
      Include/RmlUi/Core/ElementText.h
  44. 1 3
      Include/RmlUi/Core/ElementUtilities.h
  45. 1 3
      Include/RmlUi/Core/Elements/ElementForm.h
  46. 1 3
      Include/RmlUi/Core/Elements/ElementFormControl.h
  47. 1 3
      Include/RmlUi/Core/Elements/ElementFormControlInput.h
  48. 1 3
      Include/RmlUi/Core/Elements/ElementFormControlSelect.h
  49. 1 3
      Include/RmlUi/Core/Elements/ElementFormControlTextArea.h
  50. 1 3
      Include/RmlUi/Core/Elements/ElementProgress.h
  51. 1 3
      Include/RmlUi/Core/Elements/ElementTabSet.h
  52. 1 3
      Include/RmlUi/Core/Event.h
  53. 1 3
      Include/RmlUi/Core/EventInstancer.h
  54. 1 3
      Include/RmlUi/Core/EventListener.h
  55. 1 3
      Include/RmlUi/Core/EventListenerInstancer.h
  56. 1 3
      Include/RmlUi/Core/Factory.h
  57. 1 3
      Include/RmlUi/Core/FileInterface.h
  58. 1 3
      Include/RmlUi/Core/Filter.h
  59. 1 3
      Include/RmlUi/Core/FontEffect.h
  60. 1 3
      Include/RmlUi/Core/FontEffectInstancer.h
  61. 1 3
      Include/RmlUi/Core/FontEngineInterface.h
  62. 1 3
      Include/RmlUi/Core/FontGlyph.h
  63. 1 3
      Include/RmlUi/Core/FontMetrics.h
  64. 1 3
      Include/RmlUi/Core/Geometry.h
  65. 1 4
      Include/RmlUi/Core/Header.h
  66. 1 3
      Include/RmlUi/Core/ID.h
  67. 1 3
      Include/RmlUi/Core/Input.h
  68. 1 3
      Include/RmlUi/Core/Log.h
  69. 1 3
      Include/RmlUi/Core/Math.h
  70. 1 4
      Include/RmlUi/Core/Matrix4.h
  71. 1 3
      Include/RmlUi/Core/Mesh.h
  72. 1 3
      Include/RmlUi/Core/MeshUtilities.h
  73. 1 4
      Include/RmlUi/Core/NumericValue.h
  74. 1 3
      Include/RmlUi/Core/ObserverPtr.h
  75. 1 4
      Include/RmlUi/Core/Platform.h
  76. 1 3
      Include/RmlUi/Core/Plugin.h
  77. 1 4
      Include/RmlUi/Core/Profiling.h
  78. 1 3
      Include/RmlUi/Core/PropertiesIteratorView.h
  79. 1 3
      Include/RmlUi/Core/Property.h
  80. 1 3
      Include/RmlUi/Core/PropertyDefinition.h
  81. 1 3
      Include/RmlUi/Core/PropertyDictionary.h
  82. 1 3
      Include/RmlUi/Core/PropertyIdSet.h
  83. 1 3
      Include/RmlUi/Core/PropertyParser.h
  84. 1 3
      Include/RmlUi/Core/PropertySpecification.h
  85. 1 4
      Include/RmlUi/Core/Rectangle.h
  86. 1 4
      Include/RmlUi/Core/RenderBox.h
  87. 1 3
      Include/RmlUi/Core/RenderInterface.h
  88. 1 3
      Include/RmlUi/Core/RenderInterfaceCompatibility.h
  89. 1 4
      Include/RmlUi/Core/RenderManager.h
  90. 1 3
      Include/RmlUi/Core/ScriptInterface.h
  91. 1 4
      Include/RmlUi/Core/ScrollTypes.h
  92. 1 3
      Include/RmlUi/Core/Span.h
  93. 1 3
      Include/RmlUi/Core/Spritesheet.h
  94. 1 3
      Include/RmlUi/Core/StableVector.h
  95. 1 3
      Include/RmlUi/Core/Stream.h
  96. 1 3
      Include/RmlUi/Core/StreamMemory.h
  97. 1 3
      Include/RmlUi/Core/StringUtilities.h
  98. 1 4
      Include/RmlUi/Core/StyleSheet.h
  99. 1 3
      Include/RmlUi/Core/StyleSheetContainer.h
  100. 1 3
      Include/RmlUi/Core/StyleSheetSpecification.h

+ 1 - 4
Backends/RmlUi_Backend.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_BACKENDS_BACKEND_H
-#define RMLUI_BACKENDS_BACKEND_H
+#pragma once
 
 #include <RmlUi/Core/Input.h>
 #include <RmlUi/Core/RenderInterface.h>
@@ -40,5 +39,3 @@ void BeginFrame();
 void PresentFrame();
 
 } // namespace Backend
-
-#endif

+ 1 - 4
Backends/RmlUi_BackwardCompatible/RmlUi_Renderer_BackwardCompatible_GL2.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_BACKENDS_RENDERER_BACKWARDCOMPATIBLE_GL2_H
-#define RMLUI_BACKENDS_RENDERER_BACKWARDCOMPATIBLE_GL2_H
+#pragma once
 
 #include <RmlUi/Core/RenderInterfaceCompatibility.h>
 
@@ -45,5 +44,3 @@ private:
 	int viewport_height = 0;
 	bool transform_enabled = false;
 };
-
-#endif

+ 1 - 4
Backends/RmlUi_BackwardCompatible/RmlUi_Renderer_BackwardCompatible_GL3.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_BACKENDS_RENDERER_BACKWARDCOMPATIBLE_GL3_H
-#define RMLUI_BACKENDS_RENDERER_BACKWARDCOMPATIBLE_GL3_H
+#pragma once
 
 #include <RmlUi/Core/RenderInterfaceCompatibility.h>
 #include <RmlUi/Core/Types.h>
@@ -116,5 +115,3 @@ bool Initialize(Rml::String* out_message = nullptr);
 void Shutdown();
 
 } // namespace RmlGL3
-
-#endif

+ 1 - 4
Backends/RmlUi_Include_Windows.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_BACKENDS_INCLUDE_WINDOWS_H
-#define RMLUI_BACKENDS_INCLUDE_WINDOWS_H
+#pragma once
 
 #ifndef RMLUI_DISABLE_INCLUDE_WINDOWS
 
@@ -19,5 +18,3 @@
 	#include <windows.h>
 
 #endif
-
-#endif

+ 1 - 4
Backends/RmlUi_Include_Xlib.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_BACKENDS_INCLUDE_XLIB_H
-#define RMLUI_BACKENDS_INCLUDE_XLIB_H
+#pragma once
 
 #ifndef RMLUI_DISABLE_INCLUDE_XLIB
 
@@ -17,5 +16,3 @@
 	#endif
 
 #endif
-
-#endif

+ 1 - 4
Backends/RmlUi_Platform_GLFW.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_BACKENDS_PLATFORM_GLFW_H
-#define RMLUI_BACKENDS_PLATFORM_GLFW_H
+#pragma once
 
 #include <RmlUi/Core/Input.h>
 #include <RmlUi/Core/SystemInterface.h>
@@ -58,5 +57,3 @@ Rml::Input::KeyIdentifier ConvertKey(int glfw_key);
 int ConvertKeyModifiers(int glfw_mods);
 
 } // namespace RmlGLFW
-
-#endif

+ 1 - 4
Backends/RmlUi_Platform_SDL.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_BACKENDS_PLATFORM_SDL_H
-#define RMLUI_BACKENDS_PLATFORM_SDL_H
+#pragma once
 
 #include <RmlUi/Core/Input.h>
 #include <RmlUi/Core/SystemInterface.h>
@@ -61,5 +60,3 @@ int ConvertMouseButton(int sdl_mouse_button);
 int GetKeyModifierState();
 
 } // namespace RmlSDL
-
-#endif

+ 1 - 4
Backends/RmlUi_Platform_SFML.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_BACKENDS_PLATFORM_SFML_H
-#define RMLUI_BACKENDS_PLATFORM_SFML_H
+#pragma once
 
 #include <RmlUi/Core/Input.h>
 #include <RmlUi/Core/SystemInterface.h>
@@ -59,5 +58,3 @@ Rml::Input::KeyIdentifier ConvertKey(sf::Keyboard::Key sfml_key);
 int GetKeyModifierState();
 
 } // namespace RmlSFML
-
-#endif

+ 1 - 4
Backends/RmlUi_Platform_Win32.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_BACKENDS_PLATFORM_WIN32_H
-#define RMLUI_BACKENDS_PLATFORM_WIN32_H
+#pragma once
 
 #include "RmlUi_Include_Windows.h"
 #include <RmlUi/Core/Input.h>
@@ -118,5 +117,3 @@ private:
 	int composition_range_start;
 	int composition_range_end;
 };
-
-#endif

+ 1 - 4
Backends/RmlUi_Platform_X11.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_BACKENDS_PLATFORM_X11_H
-#define RMLUI_BACKENDS_PLATFORM_X11_H
+#pragma once
 
 #include "RmlUi_Include_Xlib.h"
 #include <RmlUi/Core/Input.h>
@@ -74,5 +73,3 @@ int ConvertMouseButton(unsigned int x11_mouse_button);
 int GetKeyModifierState(int x11_state);
 
 } // namespace RmlX11
-
-#endif

+ 1 - 4
Backends/RmlUi_Renderer_GL2.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_BACKENDS_RENDERER_GL2_H
-#define RMLUI_BACKENDS_RENDERER_GL2_H
+#pragma once
 
 #include <RmlUi/Core/RenderInterface.h>
 
@@ -48,5 +47,3 @@ private:
 	int viewport_height = 0;
 	bool transform_enabled = false;
 };
-
-#endif

+ 1 - 4
Backends/RmlUi_Renderer_GL3.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_BACKENDS_RENDERER_GL3_H
-#define RMLUI_BACKENDS_RENDERER_GL3_H
+#pragma once
 
 #include <RmlUi/Core/RenderInterface.h>
 #include <RmlUi/Core/Types.h>
@@ -209,5 +208,3 @@ bool Initialize(Rml::String* out_message = nullptr);
 void Shutdown();
 
 } // namespace RmlGL3
-
-#endif

+ 1 - 4
Backends/RmlUi_Renderer_SDL.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_BACKENDS_RENDERER_SDL_H
-#define RMLUI_BACKENDS_RENDERER_SDL_H
+#pragma once
 
 #include <RmlUi/Core/RenderInterface.h>
 
@@ -43,5 +42,3 @@ private:
 	SDL_Rect rect_scissor = {};
 	bool scissor_region_enabled = false;
 };
-
-#endif

+ 1 - 4
Backends/RmlUi_Renderer_SDL_GPU.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_BACKENDS_RENDERER_SDL_GPU_H
-#define RMLUI_BACKENDS_RENDERER_SDL_GPU_H
+#pragma once
 
 #include <RmlUi/Core/RenderInterface.h>
 #include <RmlUi/Core/Types.h>
@@ -120,5 +119,3 @@ private:
 	bool BeginRenderPass();
 	Buffer* RequestBuffer(int capacity, SDL_GPUBufferUsageFlags usage);
 };
-
-#endif

+ 1 - 4
Backends/RmlUi_Renderer_VK.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_BACKENDS_RENDERER_VK_H
-#define RMLUI_BACKENDS_RENDERER_VK_H
+#pragma once
 
 #include <RmlUi/Core/RenderInterface.h>
 
@@ -581,5 +580,3 @@ private:
 	UploadResourceManager m_upload_manager;
 	DescriptorPoolManager m_manager_descriptors;
 };
-
-#endif

+ 55 - 58
Include/RmlUi/Config/Config.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CONFIG_CONFIG_H
-#define RMLUI_CONFIG_CONFIG_H
+#pragma once
 
 /*
  * This file provides the means to configure various types used across RmlUi. It is possible to override container
@@ -36,7 +35,7 @@
 namespace Rml {
 
 	// Default matrix type to be used. This alias may be set to ColumnMajorMatrix4f or RowMajorMatrix4f. This alias can not
-	// be set here because matrix types are defined after this include in Core/Types.h.
+    // be set here because matrix types are defined after this include in Core/Types.h.
 	#ifdef RMLUI_MATRIX_ROW_MAJOR
 		#define RMLUI_MATRIX4_TYPE RowMajorMatrix4f
 	#else
@@ -133,58 +132,56 @@ inline UniquePtr<T> MakeUnique(Args&&... args)
 
 } // namespace Rml
 
-	/***
-	// The following defines should be used for inserting custom type cast operators for conversion of RmlUi types
-	// to user types. RmlUi uses template math types, therefore conversion operators to non-templated types
-	// should be done using SFINAE as in example below.
-
-	// Extra code to be inserted into RmlUi::Color<> class body. Note: be mindful of colorspaces used by different
-	// color types. RmlUi assumes that float colors are interpreted in linear colorspace while byte colors are
-	// interpreted as sRGB.
-	#define RMLUI_COLOUR_USER_EXTRA                                                                         \
-	    template<typename U = ColourType, typename std::enable_if_t<std::is_same_v<U, byte>>* = nullptr>    \
-	    operator MyColor() const { return MyColor(                                                          \
-	        (float)red / 255.0f, (float)green / 255.0f, (float)blue / 255.0f, (float)alpha / 255.0f); }     \
-	    template<typename U = ColourType, typename std::enable_if_t<std::is_same_v<U, float>>* = nullptr>   \
-	    operator MyColor() const { return MyColor(red, green, blue, alpha); }                               \
-
-	// Extra code to be inserted into RmlUi::Vector2<> class body.
-	#define RMLUI_VECTOR2_USER_EXTRA                                                                        \
-	    template<typename U = Type, typename std::enable_if_t<std::is_same_v<U, int>>* = nullptr>           \
-	    operator typename MyIntVector2() const { return MyIntVector2(x, y); }                               \
-	    template<typename U = Type, typename std::enable_if_t<std::is_same_v<U, float>>* = nullptr>         \
-	    operator MyVector2() const { return MyVector2(x, y); }                                              \
-	    template<typename U = Type, typename std::enable_if_t<std::is_same_v<U, int>>* = nullptr>           \
-	    Vector2(MyIntVector2 value) : Vector2(value.x_, value.y_) { }                                       \
-	    template<typename U = Type, typename std::enable_if_t<std::is_same_v<U, float>>* = nullptr>         \
-	    Vector2(MyVector2 value) : Vector2(value.x_, value.y_) { }                                          \
-
-	// Extra code to be inserted into RmlUi::Vector3<> class body.
-	#define RMLUI_VECTOR3_USER_EXTRA                                                                        \
-	    template<typename U = Type, typename std::enable_if_t<std::is_same_v<U, int>>* = nullptr>           \
-	    operator typename MyIntVector3() const { return MyIntVector3(x, y, z); }                            \
-	    template<typename U = Type, typename std::enable_if_t<std::is_same_v<U, float>>* = nullptr>         \
-	    operator MyVector3() const { return MyVector3(x, y, z); }                                           \
-	    template<typename U = Type, typename std::enable_if_t<std::is_same_v<U, int>>* = nullptr>           \
-	    Vector3(MyIntVector3 value) : Vector3(value.x_, value.y_, value.z_) { }                             \
-	    template<typename U = Type, typename std::enable_if_t<std::is_same_v<U, float>>* = nullptr>         \
-	    Vector3(MyVector3 value) : Vector3(value.x_, value.y_, value.z_) { }                                \
-
-	// Extra code to be inserted into RmlUi::Vector4<> class body.
-	#define RMLUI_VECTOR4_USER_EXTRA                                                                        \
-	    template<typename U = Type, typename std::enable_if_t<std::is_same_v<U, int>>* = nullptr>           \
-	    operator typename MyIntVector4() const { return MyIntVector4(x, y, z, w); }                         \
-	    template<typename U = Type, typename std::enable_if_t<std::is_same_v<U, float>>* = nullptr>         \
-	    operator MyVector4() const { return MyVector4(x, y, z, w); }                                        \
-	    template<typename U = Type, typename std::enable_if_t<std::is_same_v<U, int>>* = nullptr>           \
-	    Vector4(MyIntVector4 value) : Vector4(value.x_, value.y_, value.z_, value.w_) { }                   \
-	    template<typename U = Type, typename std::enable_if_t<std::is_same_v<U, float>>* = nullptr>         \
-	    Vector4(MyVector4 value) : Vector4(value.x_, value.y_, value.z_, value.w_) { }                      \
-
-	// Extra code to be inserted into RmlUi::Matrix4<> class body.
-	    #define RMLUI_MATRIX4_USER_EXTRA operator MyMatrix4() const { return MyMatrix4(data()); }
-	***/
-
-#endif     // RMLUI_USER_CONFIG_FILE
-
-#endif     // RMLUI_CONFIG_CONFIG_H
+/***
+// The following defines should be used for inserting custom type cast operators for conversion of RmlUi types
+// to user types. RmlUi uses template math types, therefore conversion operators to non-templated types
+// should be done using SFINAE as in example below.
+
+// Extra code to be inserted into RmlUi::Color<> class body. Note: be mindful of colorspaces used by different
+// color types. RmlUi assumes that float colors are interpreted in linear colorspace while byte colors are
+// interpreted as sRGB.
+#define RMLUI_COLOUR_USER_EXTRA                                                                         \
+    template<typename U = ColourType, typename std::enable_if_t<std::is_same_v<U, byte>>* = nullptr>    \
+    operator MyColor() const { return MyColor(                                                          \
+        (float)red / 255.0f, (float)green / 255.0f, (float)blue / 255.0f, (float)alpha / 255.0f); }     \
+    template<typename U = ColourType, typename std::enable_if_t<std::is_same_v<U, float>>* = nullptr>   \
+    operator MyColor() const { return MyColor(red, green, blue, alpha); }                               \
+
+// Extra code to be inserted into RmlUi::Vector2<> class body.
+#define RMLUI_VECTOR2_USER_EXTRA                                                                        \
+    template<typename U = Type, typename std::enable_if_t<std::is_same_v<U, int>>* = nullptr>           \
+    operator typename MyIntVector2() const { return MyIntVector2(x, y); }                               \
+    template<typename U = Type, typename std::enable_if_t<std::is_same_v<U, float>>* = nullptr>         \
+    operator MyVector2() const { return MyVector2(x, y); }                                              \
+    template<typename U = Type, typename std::enable_if_t<std::is_same_v<U, int>>* = nullptr>           \
+    Vector2(MyIntVector2 value) : Vector2(value.x_, value.y_) { }                                       \
+    template<typename U = Type, typename std::enable_if_t<std::is_same_v<U, float>>* = nullptr>         \
+    Vector2(MyVector2 value) : Vector2(value.x_, value.y_) { }                                          \
+
+// Extra code to be inserted into RmlUi::Vector3<> class body.
+#define RMLUI_VECTOR3_USER_EXTRA                                                                        \
+    template<typename U = Type, typename std::enable_if_t<std::is_same_v<U, int>>* = nullptr>           \
+    operator typename MyIntVector3() const { return MyIntVector3(x, y, z); }                            \
+    template<typename U = Type, typename std::enable_if_t<std::is_same_v<U, float>>* = nullptr>         \
+    operator MyVector3() const { return MyVector3(x, y, z); }                                           \
+    template<typename U = Type, typename std::enable_if_t<std::is_same_v<U, int>>* = nullptr>           \
+    Vector3(MyIntVector3 value) : Vector3(value.x_, value.y_, value.z_) { }                             \
+    template<typename U = Type, typename std::enable_if_t<std::is_same_v<U, float>>* = nullptr>         \
+    Vector3(MyVector3 value) : Vector3(value.x_, value.y_, value.z_) { }                                \
+
+// Extra code to be inserted into RmlUi::Vector4<> class body.
+#define RMLUI_VECTOR4_USER_EXTRA                                                                        \
+    template<typename U = Type, typename std::enable_if_t<std::is_same_v<U, int>>* = nullptr>           \
+    operator typename MyIntVector4() const { return MyIntVector4(x, y, z, w); }                         \
+    template<typename U = Type, typename std::enable_if_t<std::is_same_v<U, float>>* = nullptr>         \
+    operator MyVector4() const { return MyVector4(x, y, z, w); }                                        \
+    template<typename U = Type, typename std::enable_if_t<std::is_same_v<U, int>>* = nullptr>           \
+    Vector4(MyIntVector4 value) : Vector4(value.x_, value.y_, value.z_, value.w_) { }                   \
+    template<typename U = Type, typename std::enable_if_t<std::is_same_v<U, float>>* = nullptr>         \
+    Vector4(MyVector4 value) : Vector4(value.x_, value.y_, value.z_, value.w_) { }                      \
+
+// Extra code to be inserted into RmlUi::Matrix4<> class body.
+    #define RMLUI_MATRIX4_USER_EXTRA operator MyMatrix4() const { return MyMatrix4(data()); }
+***/
+
+#endif

+ 1 - 4
Include/RmlUi/Core.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_H
-#define RMLUI_CORE_H
+#pragma once
 
 #include "Core/Animation.h"
 #include "Core/Box.h"
@@ -81,5 +80,3 @@
 #include "Core/Elements/ElementFormControlTextArea.h"
 #include "Core/Elements/ElementProgress.h"
 #include "Core/Elements/ElementTabSet.h"
-
-#endif

+ 1 - 3
Include/RmlUi/Core/Animation.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_ANIMATION_H
-#define RMLUI_CORE_ANIMATION_H
+#pragma once
 
 #include "ID.h"
 #include "Tween.h"
@@ -64,4 +63,3 @@ inline bool operator!=(const TransitionList& a, const TransitionList& b)
 }
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/BaseXMLParser.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_BASEXMLPARSER_H
-#define RMLUI_CORE_BASEXMLPARSER_H
+#pragma once
 
 #include "Dictionary.h"
 #include "Header.h"
@@ -111,4 +110,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/Box.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_BOX_H
-#define RMLUI_CORE_BOX_H
+#pragma once
 
 #include "Types.h"
 
@@ -84,4 +83,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/CallbackTexture.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_CALLBACKTEXTURE_H
-#define RMLUI_CORE_CALLBACKTEXTURE_H
+#pragma once
 
 #include "Header.h"
 #include "Types.h"
@@ -95,4 +94,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 4
Include/RmlUi/Core/Colour.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_COLOUR_H
-#define RMLUI_CORE_COLOUR_H
+#pragma once
 
 #include "Header.h"
 
@@ -124,5 +123,3 @@ public:
 } // namespace Rml
 
 #include "Colour.inl"
-
-#endif

+ 1 - 4
Include/RmlUi/Core/CompiledFilterShader.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_COMPILEDFILTERSHADER_H
-#define RMLUI_CORE_COMPILEDFILTERSHADER_H
+#pragma once
 
 #include "Header.h"
 #include "UniqueRenderResource.h"
@@ -43,5 +42,3 @@ private:
 };
 
 } // namespace Rml
-
-#endif

+ 1 - 3
Include/RmlUi/Core/ComputedValues.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_COMPUTEDVALUES_H
-#define RMLUI_CORE_COMPUTEDVALUES_H
+#pragma once
 
 #include "Animation.h"
 #include "Element.h"
@@ -437,4 +436,3 @@ RMLUICORE_API_INLINE float ResolveValue(Style::LengthPercentage length, float ba
 using ComputedValues = Style::ComputedValues;
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/Context.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_CONTEXT_H
-#define RMLUI_CORE_CONTEXT_H
+#pragma once
 
 #include "Header.h"
 #include "Input.h"
@@ -454,4 +453,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/ContextInstancer.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_CONTEXTINSTANCER_H
-#define RMLUI_CORE_CONTEXTINSTANCER_H
+#pragma once
 
 #include "Header.h"
 #include "Traits.h"
@@ -35,4 +34,3 @@ public:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/ConvolutionFilter.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_CONVOLUTIONFILTER_H
-#define RMLUI_CORE_CONVOLUTIONFILTER_H
+#pragma once
 
 #include "Header.h"
 #include "Types.h"
@@ -62,4 +61,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 4
Include/RmlUi/Core/Core.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_CORE_H
-#define RMLUI_CORE_CORE_H
+#pragma once
 
 #include "Event.h"
 #include "Header.h"
@@ -160,5 +159,3 @@ RMLUICORE_API void ReleaseFontResources();
 RMLUICORE_API void ReleaseRenderManagers();
 
 } // namespace Rml
-
-#endif

+ 1 - 3
Include/RmlUi/Core/DataModelHandle.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_DATAMODELHANDLE_H
-#define RMLUI_CORE_DATAMODELHANDLE_H
+#pragma once
 
 #include "DataStructHandle.h"
 #include "DataTypeRegister.h"
@@ -196,4 +195,3 @@ namespace Detail {
 	};
 } // namespace Detail
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/DataStructHandle.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_DATASTRUCTHANDLE_H
-#define RMLUI_CORE_DATASTRUCTHANDLE_H
+#pragma once
 
 #include "DataTypeRegister.h"
 #include "DataTypes.h"
@@ -182,4 +181,3 @@ bool StructHandle<Object>::CreateMemberScalarGetSetFuncDefinition(const String&
 }
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/DataTypeRegister.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_DATATYPEREGISTER_H
-#define RMLUI_CORE_DATATYPEREGISTER_H
+#pragma once
 
 #include "DataTypes.h"
 #include "DataVariable.h"
@@ -118,4 +117,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/DataTypes.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_DATADEFINITIONS_H
-#define RMLUI_CORE_DATADEFINITIONS_H
+#pragma once
 
 #include "Header.h"
 #include "Types.h"
@@ -81,4 +80,3 @@ namespace Detail {
 } // namespace Detail
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/DataVariable.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_DATAVARIABLE_H
-#define RMLUI_CORE_DATAVARIABLE_H
+#pragma once
 
 #include "DataTypes.h"
 #include "Header.h"
@@ -287,4 +286,3 @@ namespace Detail {
 	};
 } // namespace Detail
 } // namespace Rml
-#endif

+ 1 - 4
Include/RmlUi/Core/Debug.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_DEBUG_H
-#define RMLUI_CORE_DEBUG_H
+#pragma once
 
 #include "Header.h"
 
@@ -97,5 +96,3 @@ struct RmlUiAssertNonrecursive {
 		RmlUiAssertNonrecursive rmlui_nonrecursive(rmlui_nonrecursive_entered)
 
 #endif // RMLUI_DEBUG
-
-#endif // RMLUI_CORE_DEBUG_H

+ 1 - 3
Include/RmlUi/Core/DecorationTypes.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_DECORATIONTYPES_H
-#define RMLUI_CORE_DECORATIONTYPES_H
+#pragma once
 
 #include "NumericValue.h"
 #include "Types.h"
@@ -37,4 +36,3 @@ inline bool operator!=(const BoxShadow& a, const BoxShadow& b)
 }
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/Decorator.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_DECORATOR_H
-#define RMLUI_CORE_DECORATOR_H
+#pragma once
 
 #include "EffectSpecification.h"
 #include "Header.h"
@@ -105,4 +104,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/Dictionary.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_DICTIONARY_H
-#define RMLUI_CORE_DICTIONARY_H
+#pragma once
 
 #include "Header.h"
 #include "Variant.h"
@@ -31,4 +30,3 @@ inline T Get(const Dictionary& dictionary, const String& key, const T& default_v
 }
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/EffectSpecification.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_EFFECTSPECIFICATION_H
-#define RMLUI_CORE_EFFECTSPECIFICATION_H
+#pragma once
 
 #include "Header.h"
 #include "PropertySpecification.h"
@@ -42,4 +41,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 4
Include/RmlUi/Core/Element.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_ELEMENT_H
-#define RMLUI_CORE_ELEMENT_H
+#pragma once
 
 #include "Box.h"
 #include "Core.h"
@@ -798,5 +797,3 @@ private:
 } // namespace Rml
 
 #include "Element.inl"
-
-#endif

+ 1 - 3
Include/RmlUi/Core/ElementDocument.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_ELEMENTDOCUMENT_H
-#define RMLUI_CORE_ELEMENTDOCUMENT_H
+#pragma once
 
 #include "Element.h"
 
@@ -171,4 +170,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/ElementInstancer.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_ELEMENTINSTANCER_H
-#define RMLUI_CORE_ELEMENTINSTANCER_H
+#pragma once
 
 #include "Element.h"
 #include "Header.h"
@@ -95,4 +94,3 @@ namespace Detail {
 } // namespace Detail
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/ElementScroll.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_ELEMENTSCROLL_H
-#define RMLUI_CORE_ELEMENTSCROLL_H
+#pragma once
 
 #include "Header.h"
 #include "Types.h"
@@ -77,4 +76,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/ElementText.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_ELEMENTTEXT_H
-#define RMLUI_CORE_ELEMENTTEXT_H
+#pragma once
 
 #include "Element.h"
 #include "Geometry.h"
@@ -113,4 +112,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/ElementUtilities.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_ELEMENTUTILITIES_H
-#define RMLUI_CORE_ELEMENTUTILITIES_H
+#pragma once
 
 #include "Header.h"
 #include "RenderManager.h"
@@ -113,4 +112,3 @@ public:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/Elements/ElementForm.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_ELEMENTS_ELEMENTFORM_H
-#define RMLUI_CORE_ELEMENTS_ELEMENTFORM_H
+#pragma once
 
 #include "../Element.h"
 #include "../Header.h"
@@ -28,4 +27,3 @@ public:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/Elements/ElementFormControl.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_ELEMENTS_ELEMENTFORMCONTROL_H
-#define RMLUI_CORE_ELEMENTS_ELEMENTFORMCONTROL_H
+#pragma once
 
 #include "../Element.h"
 #include "../Header.h"
@@ -54,4 +53,3 @@ protected:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/Elements/ElementFormControlInput.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_ELEMENTS_ELEMENTFORMCONTROLINPUT_H
-#define RMLUI_CORE_ELEMENTS_ELEMENTFORMCONTROLINPUT_H
+#pragma once
 
 #include "../Header.h"
 #include "ElementFormControl.h"
@@ -93,4 +92,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/Elements/ElementFormControlSelect.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_ELEMENTS_ELEMENTFORMCONTROLSELECT_H
-#define RMLUI_CORE_ELEMENTS_ELEMENTFORMCONTROLSELECT_H
+#pragma once
 
 #include "../Header.h"
 #include "ElementFormControl.h"
@@ -104,4 +103,3 @@ protected:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/Elements/ElementFormControlTextArea.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_ELEMENTS_ELEMENTFORMCONTROLTEXTAREA_H
-#define RMLUI_CORE_ELEMENTS_ELEMENTFORMCONTROLTEXTAREA_H
+#pragma once
 
 #include "../Header.h"
 #include "ElementFormControl.h"
@@ -111,4 +110,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/Elements/ElementProgress.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_ELEMENTS_ELEMENTPROGRESS_H
-#define RMLUI_CORE_ELEMENTS_ELEMENTPROGRESS_H
+#pragma once
 
 #include "../Element.h"
 #include "../Geometry.h"
@@ -91,4 +90,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/Elements/ElementTabSet.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_ELEMENTS_ELEMENTTABSET_H
-#define RMLUI_CORE_ELEMENTS_ELEMENTTABSET_H
+#pragma once
 
 #include "../Element.h"
 #include "../Header.h"
@@ -67,4 +66,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/Event.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_EVENT_H
-#define RMLUI_CORE_EVENT_H
+#pragma once
 
 #include "Dictionary.h"
 #include "Header.h"
@@ -122,4 +121,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/EventInstancer.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_EVENTINSTANCER_H
-#define RMLUI_CORE_EVENTINSTANCER_H
+#pragma once
 
 #include "Header.h"
 #include "Traits.h"
@@ -34,4 +33,3 @@ public:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/EventListener.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_EVENTLISTENER_H
-#define RMLUI_CORE_EVENTLISTENER_H
+#pragma once
 
 #include "Event.h"
 #include "Header.h"
@@ -31,4 +30,3 @@ public:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/EventListenerInstancer.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_EVENTLISTENERINSTANCER_H
-#define RMLUI_CORE_EVENTLISTENERINSTANCER_H
+#pragma once
 
 #include "Element.h"
 #include "Header.h"
@@ -32,4 +31,3 @@ public:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/Factory.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_FACTORY_H
-#define RMLUI_CORE_FACTORY_H
+#pragma once
 
 #include "Header.h"
 #include "XMLParser.h"
@@ -192,4 +191,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/FileInterface.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_FILEINTERFACE_H
-#define RMLUI_CORE_FILEINTERFACE_H
+#pragma once
 
 #include "Header.h"
 #include "Traits.h"
@@ -62,4 +61,3 @@ public:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/Filter.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_FILTER_H
-#define RMLUI_CORE_FILTER_H
+#pragma once
 
 #include "EffectSpecification.h"
 #include "Header.h"
@@ -48,4 +47,3 @@ public:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/FontEffect.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_FONTEFFECT_H
-#define RMLUI_CORE_FONTEFFECT_H
+#pragma once
 
 #include "FontGlyph.h"
 
@@ -66,4 +65,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/FontEffectInstancer.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_FONTEFFECTINSTANCER_H
-#define RMLUI_CORE_FONTEFFECTINSTANCER_H
+#pragma once
 
 #include "Header.h"
 #include "PropertyDictionary.h"
@@ -59,4 +58,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/FontEngineInterface.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_FONTENGINEINTERFACE_H
-#define RMLUI_CORE_FONTENGINEINTERFACE_H
+#pragma once
 
 #include "FontMetrics.h"
 #include "Header.h"
@@ -103,4 +102,3 @@ public:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/FontGlyph.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_FONTGLYPH_H
-#define RMLUI_CORE_FONTGLYPH_H
+#pragma once
 
 #include "Types.h"
 
@@ -43,4 +42,3 @@ public:
 using FontGlyphMap = UnorderedMap<Character, FontGlyph>;
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/FontMetrics.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_FONTMETRICS_H
-#define RMLUI_CORE_FONTMETRICS_H
+#pragma once
 
 #include "Header.h"
 
@@ -21,4 +20,3 @@ struct FontMetrics {
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/Geometry.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_GEOMETRY_H
-#define RMLUI_CORE_GEOMETRY_H
+#pragma once
 
 #include "CompiledFilterShader.h"
 #include "Header.h"
@@ -34,4 +33,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 4
Include/RmlUi/Core/Header.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_HEADER_H
-#define RMLUI_CORE_HEADER_H
+#pragma once
 
 #include "Platform.h"
 
@@ -54,5 +53,3 @@
 	// breaks ABI compatibility!!
 	#define RMLUICORE_API_INLINE inline
 #endif
-
-#endif

+ 1 - 3
Include/RmlUi/Core/ID.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_ID_H
-#define RMLUI_CORE_ID_H
+#pragma once
 
 #include <stdint.h>
 
@@ -235,4 +234,3 @@ enum class EventId : uint16_t {
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/Input.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_INPUT_H
-#define RMLUI_CORE_INPUT_H
+#pragma once
 
 namespace Rml {
 
@@ -245,4 +244,3 @@ namespace Input {
 } // namespace Input
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/Log.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_LOG_H
-#define RMLUI_CORE_LOG_H
+#pragma once
 
 #include "Header.h"
 #include "Types.h"
@@ -37,4 +36,3 @@ public:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/Math.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_MATH_H
-#define RMLUI_CORE_MATH_H
+#pragma once
 
 #include "Header.h"
 #include <type_traits>
@@ -215,4 +214,3 @@ namespace Math {
 
 } // namespace Math
 } // namespace Rml
-#endif

+ 1 - 4
Include/RmlUi/Core/Matrix4.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_MATRIX4_H
-#define RMLUI_CORE_MATRIX4_H
+#pragma once
 
 #include "Debug.h"
 #include "Math.h"
@@ -470,5 +469,3 @@ public:
 } // namespace Rml
 
 #include "Matrix4.inl"
-
-#endif

+ 1 - 3
Include/RmlUi/Core/Mesh.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_MESH_H
-#define RMLUI_CORE_MESH_H
+#pragma once
 
 #include "Header.h"
 #include "Texture.h"
@@ -24,4 +23,3 @@ struct RMLUICORE_API TexturedMesh {
 using TexturedMeshList = Vector<TexturedMesh>;
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/MeshUtilities.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_MESHUTILITIES_H
-#define RMLUI_CORE_MESHUTILITIES_H
+#pragma once
 
 #include "Header.h"
 #include "RenderBox.h"
@@ -59,4 +58,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 4
Include/RmlUi/Core/NumericValue.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_NUMERICVALUE_H
-#define RMLUI_CORE_NUMERICVALUE_H
+#pragma once
 
 #include "Unit.h"
 
@@ -24,5 +23,3 @@ inline bool operator!=(const NumericValue& a, const NumericValue& b)
 }
 
 } // namespace Rml
-
-#endif

+ 1 - 3
Include/RmlUi/Core/ObserverPtr.h

@@ -1,5 +1,4 @@
-#ifndef RMLUIOBSERVERPTR_H
-#define RMLUIOBSERVERPTR_H
+#pragma once
 
 #include "Header.h"
 #include <type_traits>
@@ -166,4 +165,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 4
Include/RmlUi/Core/Platform.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_PLATFORM_H
-#define RMLUI_CORE_PLATFORM_H
+#pragma once
 
 #if defined __WIN32__ || defined _WIN32
 	#define RMLUI_PLATFORM_WIN32
@@ -49,5 +48,3 @@
 #else
 	#define RMLUI_ATTRIBUTE_FORMAT_PRINTF(i, f)
 #endif
-
-#endif

+ 1 - 3
Include/RmlUi/Core/Plugin.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_PLUGIN_H
-#define RMLUI_CORE_PLUGIN_H
+#pragma once
 
 #include "Header.h"
 #include "Types.h"
@@ -57,4 +56,3 @@ public:
 };
 
 } // namespace Rml
-#endif

+ 1 - 4
Include/RmlUi/Core/Profiling.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_PROFILING_H
-#define RMLUI_CORE_PROFILING_H
+#pragma once
 
 #ifdef RMLUI_TRACY_PROFILING
 
@@ -48,5 +47,3 @@
 	#define RMLUI_FrameMarkEnd(name)
 
 #endif
-
-#endif

+ 1 - 3
Include/RmlUi/Core/PropertiesIteratorView.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_PROPERTIESITERATORVIEW_H
-#define RMLUI_CORE_PROPERTIESITERATORVIEW_H
+#pragma once
 
 #include "Property.h"
 #include "Types.h"
@@ -46,4 +45,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/Property.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_PROPERTY_H
-#define RMLUI_CORE_PROPERTY_H
+#pragma once
 
 #include "Header.h"
 #include "NumericValue.h"
@@ -63,4 +62,3 @@ public:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/PropertyDefinition.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_PROPERTYDEFINITION_H
-#define RMLUI_CORE_PROPERTYDEFINITION_H
+#pragma once
 
 #include "Header.h"
 #include "Property.h"
@@ -71,4 +70,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/PropertyDictionary.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_PROPERTYDICTIONARY_H
-#define RMLUI_CORE_PROPERTYDICTIONARY_H
+#pragma once
 
 #include "Header.h"
 #include "Property.h"
@@ -57,4 +56,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/PropertyIdSet.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_PROPERTYIDSET_H
-#define RMLUI_CORE_PROPERTYIDSET_H
+#pragma once
 
 #include "ID.h"
 #include "Types.h"
@@ -132,4 +131,3 @@ PropertyIdSetIterator PropertyIdSet::Erase(PropertyIdSetIterator it)
 }
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/PropertyParser.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_PROPERTYPARSER_H
-#define RMLUI_CORE_PROPERTYPARSER_H
+#pragma once
 
 #include "Header.h"
 #include "Property.h"
@@ -27,4 +26,3 @@ public:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/PropertySpecification.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_PROPERTYSPECIFICATION_H
-#define RMLUI_CORE_PROPERTYSPECIFICATION_H
+#pragma once
 
 #include "Header.h"
 #include "ID.h"
@@ -116,4 +115,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 4
Include/RmlUi/Core/Rectangle.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_RECTANGLE_H
-#define RMLUI_CORE_RECTANGLE_H
+#pragma once
 
 #include "Debug.h"
 #include "Vector2.h"
@@ -84,5 +83,3 @@ private:
 };
 
 } // namespace Rml
-
-#endif

+ 1 - 4
Include/RmlUi/Core/RenderBox.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_RENDERBOX_H
-#define RMLUI_CORE_RENDERBOX_H
+#pragma once
 
 #include "Types.h"
 
@@ -58,5 +57,3 @@ inline bool operator!=(const RenderBox& a, const RenderBox& b)
 	return !(a == b);
 }
 } // namespace Rml
-
-#endif

+ 1 - 3
Include/RmlUi/Core/RenderInterface.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_RENDERINTERFACE_H
-#define RMLUI_CORE_RENDERINTERFACE_H
+#pragma once
 
 #include "Header.h"
 #include "Traits.h"
@@ -144,4 +143,3 @@ public:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/RenderInterfaceCompatibility.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_RENDERINTERFACECOMPATIBILITY_H
-#define RMLUI_CORE_RENDERINTERFACECOMPATIBILITY_H
+#pragma once
 
 #include "RenderInterface.h"
 
@@ -90,4 +89,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 4
Include/RmlUi/Core/RenderManager.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_RENDERMANAGER_H
-#define RMLUI_CORE_RENDERMANAGER_H
+#pragma once
 
 #include "CallbackTexture.h"
 #include "Mesh.h"
@@ -127,5 +126,3 @@ private:
 };
 
 } // namespace Rml
-
-#endif

+ 1 - 3
Include/RmlUi/Core/ScriptInterface.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_SCRIPTINTERFACE_H
-#define RMLUI_CORE_SCRIPTINTERFACE_H
+#pragma once
 
 #include "Header.h"
 #include "Traits.h"
@@ -22,4 +21,3 @@ public:
 };
 
 } // namespace Rml
-#endif

+ 1 - 4
Include/RmlUi/Core/ScrollTypes.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_SCROLLTYPES_H
-#define RMLUI_CORE_SCROLLTYPES_H
+#pragma once
 
 namespace Rml {
 
@@ -36,5 +35,3 @@ struct ScrollIntoViewOptions {
 };
 
 } // namespace Rml
-
-#endif

+ 1 - 3
Include/RmlUi/Core/Span.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_SPAN_H
-#define RMLUI_CORE_SPAN_H
+#pragma once
 
 #include "../Config/Config.h"
 #include "Header.h"
@@ -40,4 +39,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/Spritesheet.h

@@ -1,5 +1,4 @@
-#ifndef RMLUISPRITESHEET_H
-#define RMLUISPRITESHEET_H
+#pragma once
 
 #include "Texture.h"
 #include "Types.h"
@@ -56,4 +55,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/StableVector.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_STABLEVECTOR_H
-#define RMLUI_CORE_STABLEVECTOR_H
+#pragma once
 
 #include "Header.h"
 #include "Types.h"
@@ -94,4 +93,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/Stream.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_STREAM_H
-#define RMLUI_CORE_STREAM_H
+#pragma once
 
 #include "Header.h"
 #include "Traits.h"
@@ -100,4 +99,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/StreamMemory.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_STREAMMEMORY_H
-#define RMLUI_CORE_STREAMMEMORY_H
+#pragma once
 
 #include "Header.h"
 #include "Stream.h"
@@ -83,4 +82,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/StringUtilities.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_STRINGUTILITIES_H
-#define RMLUI_CORE_STRINGUTILITIES_H
+#pragma once
 
 #include "Header.h"
 #include "Types.h"
@@ -204,4 +203,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 4
Include/RmlUi/Core/StyleSheet.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_STYLESHEET_H
-#define RMLUI_CORE_STYLESHEET_H
+#pragma once
 
 #include "PropertyDictionary.h"
 #include "Spritesheet.h"
@@ -98,5 +97,3 @@ private:
 };
 
 } // namespace Rml
-
-#endif

+ 1 - 3
Include/RmlUi/Core/StyleSheetContainer.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_STYLESHEETCONTAINER_H
-#define RMLUI_CORE_STYLESHEETCONTAINER_H
+#pragma once
 
 #include "StyleSheetTypes.h"
 #include "Traits.h"
@@ -48,4 +47,3 @@ private:
 };
 
 } // namespace Rml
-#endif

+ 1 - 3
Include/RmlUi/Core/StyleSheetSpecification.h

@@ -1,5 +1,4 @@
-#ifndef RMLUI_CORE_STYLESHEETSPECIFICATION_H
-#define RMLUI_CORE_STYLESHEETSPECIFICATION_H
+#pragma once
 
 #include "Header.h"
 #include "PropertySpecification.h"
@@ -106,4 +105,3 @@ private:
 };
 
 } // namespace Rml
-#endif

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików