Apply header guard check

This commit is contained in:
Jérôme Leclercq
2021-10-26 15:52:46 +02:00
parent b85f6b68ac
commit 93ec196dc4
476 changed files with 1414 additions and 1327 deletions

View File

@@ -24,8 +24,8 @@
#pragma once
#ifndef NAZARA_CONFIG_PLATFORM_HPP
#define NAZARA_CONFIG_PLATFORM_HPP
#ifndef NAZARA_PLATFORM_CONFIG_HPP
#define NAZARA_PLATFORM_CONFIG_HPP
/// Each modification of a parameter needs a recompilation of the module
@@ -51,4 +51,4 @@
#endif
#endif
#endif // NAZARA_CONFIG_PLATFORM_HPP
#endif // NAZARA_PLATFORM_CONFIG_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_CONFIG_CHECK_PLATFORM_HPP
#define NAZARA_CONFIG_CHECK_PLATFORM_HPP
#ifndef NAZARA_PLATFORM_CONFIGCHECK_HPP
#define NAZARA_PLATFORM_CONFIGCHECK_HPP
/// This file is used to check the constant values defined in Config.hpp
@@ -20,4 +20,4 @@
#undef NazaraCheckTypeAndVal
#endif // NAZARA_CONFIG_CHECK_PLATFORM_HPP
#endif // NAZARA_PLATFORM_CONFIGCHECK_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_CURSOR_HPP
#define NAZARA_CURSOR_HPP
#ifndef NAZARA_PLATFORM_CURSOR_HPP
#define NAZARA_PLATFORM_CURSOR_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Math/Vector2.hpp>
@@ -59,4 +59,4 @@ namespace Nz
#include <Nazara/Platform/Cursor.inl>
#endif // NAZARA_CURSOR_HPP
#endif // NAZARA_PLATFORM_CURSOR_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_CURSORCONTROLLER_HPP
#define NAZARA_CURSORCONTROLLER_HPP
#ifndef NAZARA_PLATFORM_CURSORCONTROLLER_HPP
#define NAZARA_PLATFORM_CURSORCONTROLLER_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Core/HandledObject.hpp>
@@ -39,4 +39,4 @@ namespace Nz
#include <Nazara/Platform/CursorController.inl>
#endif // NAZARA_CURSORCONTROLLER_HPP
#endif // NAZARA_PLATFORM_CURSORCONTROLLER_HPP

View File

@@ -2,6 +2,8 @@
// This file is part of the "Nazara Engine - Platform module"
// For conditions of distribution and use, see copyright notice in Config.hpp
// no header guards
#include <Nazara/Platform/Config.hpp>
#if NAZARA_PLATFORM_MANAGE_MEMORY
#include <Nazara/Core/Debug/NewRedefinition.hpp>

View File

@@ -2,6 +2,8 @@
// This file is part of the "Nazara Engine - Platform module"
// For conditions of distribution and use, see copyright notice in Config.hpp
// no header guards
// We suppose that Debug.hpp is already included, same goes for Config.hpp
#if NAZARA_PLATFORM_MANAGE_MEMORY
#undef delete

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_ENUMS_PLATFORM_HPP
#define NAZARA_ENUMS_PLATFORM_HPP
#ifndef NAZARA_PLATFORM_ENUMS_HPP
#define NAZARA_PLATFORM_ENUMS_HPP
#include <Nazara/Core/Flags.hpp>
@@ -88,4 +88,4 @@ namespace Nz
constexpr WindowStyleFlags WindowStyle_Default = WindowStyle::Closable | WindowStyle::Resizable | WindowStyle::Titlebar;
}
#endif // NAZARA_ENUMS_PLATFORM_HPP
#endif // NAZARA_PLATFORM_ENUMS_HPP

View File

@@ -6,8 +6,8 @@
#pragma once
#ifndef NAZARA_EVENT_HPP
#define NAZARA_EVENT_HPP
#ifndef NAZARA_PLATFORM_EVENT_HPP
#define NAZARA_PLATFORM_EVENT_HPP
#include <array>
@@ -135,4 +135,4 @@ namespace Nz
};
}
#endif // NAZARA_EVENT_HPP
#endif // NAZARA_PLATFORM_EVENT_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_EVENTHANDLER_HPP
#define NAZARA_EVENTHANDLER_HPP
#ifndef NAZARA_PLATFORM_EVENTHANDLER_HPP
#define NAZARA_PLATFORM_EVENTHANDLER_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Core/HandledObject.hpp>
@@ -55,4 +55,4 @@ namespace Nz
#include <Nazara/Platform/EventHandler.inl>
#endif // NAZARA_EVENTHANDLER_HPP
#endif // NAZARA_PLATFORM_EVENTHANDLER_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_ICON_HPP
#define NAZARA_ICON_HPP
#ifndef NAZARA_PLATFORM_ICON_HPP
#define NAZARA_PLATFORM_ICON_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Platform/Config.hpp>
@@ -42,4 +42,4 @@ namespace Nz
#include <Nazara/Platform/Icon.inl>
#endif // NAZARA_ICON_HPP
#endif // NAZARA_PLATFORM_ICON_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_JOYSTICK_HPP
#define NAZARA_JOYSTICK_HPP
#ifndef NAZARA_PLATFORM_JOYSTICK_HPP
#define NAZARA_PLATFORM_JOYSTICK_HPP
#include <Nazara/Prerequisites.hpp>
#include <string>
@@ -24,4 +24,4 @@ namespace Nz
};
}
#endif // NAZARA_JOYSTICK_HPP
#endif // NAZARA_PLATFORM_JOYSTICK_HPP

View File

@@ -6,8 +6,8 @@
#pragma once
#ifndef NAZARA_KEYBOARD_HPP
#define NAZARA_KEYBOARD_HPP
#ifndef NAZARA_PLATFORM_KEYBOARD_HPP
#define NAZARA_PLATFORM_KEYBOARD_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Platform/Config.hpp>
@@ -330,4 +330,4 @@ namespace Nz
};
}
#endif // NAZARA_KEYBOARD_HPP
#endif // NAZARA_PLATFORM_KEYBOARD_HPP

View File

@@ -6,8 +6,8 @@
#pragma once
#ifndef NAZARA_MOUSE_HPP
#define NAZARA_MOUSE_HPP
#ifndef NAZARA_PLATFORM_MOUSE_HPP
#define NAZARA_PLATFORM_MOUSE_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Math/Vector2.hpp>
@@ -45,4 +45,4 @@ namespace Nz
};
}
#endif // NAZARA_MOUSE_HPP
#endif // NAZARA_PLATFORM_MOUSE_HPP

View File

@@ -6,8 +6,8 @@
#pragma once
#ifndef NAZARA_VIDEOMODE_HPP
#define NAZARA_VIDEOMODE_HPP
#ifndef NAZARA_PLATFORM_VIDEOMODE_HPP
#define NAZARA_PLATFORM_VIDEOMODE_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Platform/Config.hpp>
@@ -40,4 +40,4 @@ namespace Nz
bool NAZARA_PLATFORM_API operator>=(const VideoMode& left, const VideoMode& right);
}
#endif // NAZARA_VIDEOMODE_HPP
#endif // NAZARA_PLATFORM_VIDEOMODE_HPP

View File

@@ -6,8 +6,8 @@
#pragma once
#ifndef NAZARA_WINDOW_HPP
#define NAZARA_WINDOW_HPP
#ifndef NAZARA_PLATFORM_WINDOW_HPP
#define NAZARA_PLATFORM_WINDOW_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Core/MovablePtr.hpp>
@@ -149,4 +149,4 @@ namespace Nz
#include <Nazara/Platform/Window.inl>
#endif // NAZARA_WINDOW_HPP
#endif // NAZARA_PLATFORM_WINDOW_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_WINDOWHANDLE_HPP
#define NAZARA_WINDOWHANDLE_HPP
#ifndef NAZARA_PLATFORM_WINDOWHANDLE_HPP
#define NAZARA_PLATFORM_WINDOWHANDLE_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Utility/Config.hpp>
@@ -48,4 +48,4 @@ namespace Nz
};
}
#endif // NAZARA_WINDOWHANDLE_HPP
#endif // NAZARA_PLATFORM_WINDOWHANDLE_HPP