Replace include guards with pragma once

This commit is contained in:
2023-10-05 21:40:04 +02:00
parent b9cfbaec6b
commit c976141c51
42 changed files with 83 additions and 193 deletions

View File

@@ -1,5 +1,4 @@
#ifndef __JABYENGINE_LINKED_ELEMENTS_HPP__
#define __JABYENGINE_LINKED_ELEMENTS_HPP__
#pragma once
#include "../../Auxiliary/bits.hpp"
namespace JabyEngine {
@@ -89,6 +88,4 @@ namespace JabyEngine {
};
}
}
}
#endif // !__JABYENGINE_LINKED_ELEMENTS_HPP__
}

View File

@@ -1,5 +1,4 @@
#ifndef __JABYENGINE_PRIMITIVE_GPU_COMMANDS_HPP__
#define __JABYENGINE_PRIMITIVE_GPU_COMMANDS_HPP__
#pragma once
#include "../../System/IOPorts/gpu_io.hpp"
#include "linked_elements.hpp"
#include "primitive_support_types.hpp"
@@ -16,6 +15,4 @@ namespace JabyEngine {
}
};
}
}
#endif // !__JABYENGINE_PRIMITIVE_GPU_COMMANDS_HPP__
}

View File

@@ -1,5 +1,4 @@
#ifndef __JABYENGINE_PRIMITIVE_LINE_TYPES_HPP__
#define __JABYENGINE_PRIMITIVE_LINE_TYPES_HPP__
#pragma once
#include "linked_elements.hpp"
#include "primitive_support_types.hpp"
@@ -107,6 +106,4 @@ namespace JabyEngine {
}
};
}
}
#endif //!__JABYENGINE_PRIMITIVE_LINE_TYPES_HPP__
}

View File

@@ -1,5 +1,4 @@
#ifndef __JABYENGINE_PRIMITIVE_POLY_TYPES_HPP__
#define __JABYENGINE_PRIMITIVE_POLY_TYPES_HPP__
#pragma once
#include "linked_elements.hpp"
#include "primitive_support_types.hpp"
@@ -366,5 +365,4 @@ namespace JabyEngine {
static_assert(sizeof(POLY_G4) == 32);
static_assert(sizeof(POLY_GT4) == 48);
}
}
#endif // !__JABYENGINE_PRIMITIVE_POLY_TYPES_HPP__
}

View File

@@ -1,5 +1,4 @@
#ifndef __JABYENGINE_PRIMITIVE_RECTANGLE_TYPES_HPP__
#define __JABYENGINE_PRIMITIVE_RECTANGLE_TYPES_HPP__
#pragma once
#include "linked_elements.hpp"
#include "primitive_support_types.hpp"
@@ -126,6 +125,4 @@ namespace JabyEngine {
}
};
}
}
#endif //!__JABYENGINE_PRIMITIVE_RECTANGLE_TYPES_HPP__
}

View File

@@ -1,10 +1,8 @@
#ifndef __JABYENGINE_PRIMITIVE_SUPPORT_TYPES_HPP__
#define __JABYENGINE_PRIMITIVE_SUPPORT_TYPES_HPP__
#pragma once
#include "../../Auxiliary/type_traits.hpp"
#include "../../System/IOPorts/gpu_io.hpp"
#include "../gpu_types.hpp"
namespace JabyEngine {
namespace GPU {
namespace internal {
@@ -89,6 +87,4 @@ namespace JabyEngine {
}
};
}
}
#endif //!__JABYENGINE_PRIMITIVE_SUPPORT_TYPES_HPP__
}

View File

@@ -1,5 +1,4 @@
#ifndef __JABYENGINE_GPU_HPP__
#define __JABYENGINE_GPU_HPP__
#pragma once
#include "../Auxiliary/type_traits.hpp"
#include "../System/IOPorts/gpu_io.hpp"
#include "gpu_primitives.hpp"
@@ -60,5 +59,4 @@ namespace JabyEngine {
uint8_t swap_buffers_vsync(uint8_t syncs, bool clear_screen = true);
}
}
#endif //!__JABYENGINE_GPU_HPP__
}

View File

@@ -1,5 +1,4 @@
#ifndef __JABYENGINE_GPU_PRIMITIVES_HPP__
#define __JABYENGINE_GPU_PRIMITIVES_HPP__
#pragma once
#include "../Auxiliary/literals.hpp"
#include "Primitives/primitive_gpu_commands.hpp"
#include "Primitives/primitive_line_types.hpp"
@@ -312,6 +311,4 @@ namespace JabyEngine {
return creator_template<GPU::SPRT>(area, page, color);
}
}
}
#endif // !__JABYENGINE_GPU_PRIMITIVES_HPP__
}

View File

@@ -1,5 +1,4 @@
#ifndef __JABYENGINE_GPU_TYPES_HPP__
#define __JABYENGINE_GPU_TYPES_HPP__
#pragma once
#include "../Auxiliary/bits.hpp"
#include "../jabyengine_defines.h"
@@ -222,5 +221,4 @@ namespace JabyEngine {
}
};
}
}
#endif //!__JABYENGINE_GPU_TYPES_HPP__
}