From 8075ef8e627797f326968de90dccbd3cef593a30 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 15 Jan 2023 13:27:08 +0100 Subject: [PATCH] Added include guards to all module register_types.h-s. --- editor_modules/plugin_refresher/register_types.h | 5 +++++ editor_modules/text_editor/register_types.h | 5 +++++ modules/database/register_types.h | 5 +++++ modules/database_sqlite/register_types.h | 5 +++++ modules/entity_spell_system/register_types.h | 5 +++++ modules/fastnoise/register_types.h | 5 ++++- modules/material_maker/register_types.h | 5 +++++ modules/mesh_data_resource/register_types.h | 5 +++++ modules/navigation/register_types.h | 5 +++++ modules/network_synchronizer/register_types.h | 5 +++++ modules/paint/register_types.h | 5 +++++ modules/skeleton_2d/register_types.h | 5 ++++- modules/skeleton_3d/register_types.h | 5 ++++- modules/texture_packer/register_types.h | 5 +++++ modules/tile_map/register_types.h | 5 +++++ modules/ui_extensions/register_types.h | 5 +++++ modules/wfc/register_types.h | 4 ++++ 17 files changed, 81 insertions(+), 3 deletions(-) diff --git a/editor_modules/plugin_refresher/register_types.h b/editor_modules/plugin_refresher/register_types.h index eaf15f35a..e578c7cbc 100644 --- a/editor_modules/plugin_refresher/register_types.h +++ b/editor_modules/plugin_refresher/register_types.h @@ -1,3 +1,6 @@ +#ifndef PLUGIN_REFRESHER_REGISTER_TYPES_H +#define PLUGIN_REFRESHER_REGISTER_TYPES_H + /* Copyright (c) 2022-2023 Péter Magyar @@ -24,3 +27,5 @@ SOFTWARE. void register_plugin_refresher_types(ModuleRegistrationLevel p_level); void unregister_plugin_refresher_types(ModuleRegistrationLevel p_level); + +#endif \ No newline at end of file diff --git a/editor_modules/text_editor/register_types.h b/editor_modules/text_editor/register_types.h index 341b4c26d..c902bb11d 100644 --- a/editor_modules/text_editor/register_types.h +++ b/editor_modules/text_editor/register_types.h @@ -1,3 +1,6 @@ +#ifndef TEXT_EDITOR_REGISTER_TYPES_H +#define TEXT_EDITOR_REGISTER_TYPES_H + /* Copyright (c) 2019-2023 Péter Magyar @@ -24,3 +27,5 @@ SOFTWARE. void register_text_editor_types(ModuleRegistrationLevel p_level); void unregister_text_editor_types(ModuleRegistrationLevel p_level); + +#endif \ No newline at end of file diff --git a/modules/database/register_types.h b/modules/database/register_types.h index 83c91c885..dc17b5a2f 100644 --- a/modules/database/register_types.h +++ b/modules/database/register_types.h @@ -1,3 +1,6 @@ +#ifndef DATABASE_REGISTER_TYPES_H +#define DATABASE_REGISTER_TYPES_H + /* Copyright (c) 2022-2023 Péter Magyar @@ -24,3 +27,5 @@ SOFTWARE. void register_database_types(ModuleRegistrationLevel p_level); void unregister_database_types(ModuleRegistrationLevel p_level); + +#endif \ No newline at end of file diff --git a/modules/database_sqlite/register_types.h b/modules/database_sqlite/register_types.h index e5de81592..8597ada4a 100644 --- a/modules/database_sqlite/register_types.h +++ b/modules/database_sqlite/register_types.h @@ -1,3 +1,6 @@ +#ifndef DATABASE_SQLITE_REGISTER_TYPES_H +#define DATABASE_SQLITE_REGISTER_TYPES_H + /* Copyright (c) 2022-2023 Péter Magyar @@ -24,3 +27,5 @@ SOFTWARE. void register_database_sqlite_types(ModuleRegistrationLevel p_level); void unregister_database_sqlite_types(ModuleRegistrationLevel p_level); + +#endif \ No newline at end of file diff --git a/modules/entity_spell_system/register_types.h b/modules/entity_spell_system/register_types.h index 3cf10de04..b214eaa69 100644 --- a/modules/entity_spell_system/register_types.h +++ b/modules/entity_spell_system/register_types.h @@ -1,3 +1,6 @@ +#ifndef ENTITY_SPELL_SYSTEM_REGISTER_TYPES_H +#define ENTITY_SPELL_SYSTEM_REGISTER_TYPES_H + /* Copyright (c) 2019-2023 Péter Magyar @@ -24,3 +27,5 @@ SOFTWARE. void register_entity_spell_system_types(ModuleRegistrationLevel p_level); void unregister_entity_spell_system_types(ModuleRegistrationLevel p_level); + +#endif \ No newline at end of file diff --git a/modules/fastnoise/register_types.h b/modules/fastnoise/register_types.h index da1e63d12..a961e9aa7 100644 --- a/modules/fastnoise/register_types.h +++ b/modules/fastnoise/register_types.h @@ -1,7 +1,10 @@ - +#ifndef FASTNOISE_REGISTER_TYPES_H +#define FASTNOISE_REGISTER_TYPES_H #include "modules/register_module_types.h" void register_fastnoise_types(ModuleRegistrationLevel p_level); void unregister_fastnoise_types(ModuleRegistrationLevel p_level); + +#endif \ No newline at end of file diff --git a/modules/material_maker/register_types.h b/modules/material_maker/register_types.h index a03d428b7..59dcaa6a4 100644 --- a/modules/material_maker/register_types.h +++ b/modules/material_maker/register_types.h @@ -1,3 +1,6 @@ +#ifndef MATERIAL_MAKER_REGISTER_TYPES_H +#define MATERIAL_MAKER_REGISTER_TYPES_H + /* Copyright (c) 2022-2023 Péter Magyar @@ -24,3 +27,5 @@ SOFTWARE. void register_material_maker_types(ModuleRegistrationLevel p_level); void unregister_material_maker_types(ModuleRegistrationLevel p_level); + +#endif \ No newline at end of file diff --git a/modules/mesh_data_resource/register_types.h b/modules/mesh_data_resource/register_types.h index ad6cd1160..aeaa7be42 100644 --- a/modules/mesh_data_resource/register_types.h +++ b/modules/mesh_data_resource/register_types.h @@ -1,3 +1,6 @@ +#ifndef MESH_DATA_RESOURCE_REGISTER_TYPES_H +#define MESH_DATA_RESOURCE_REGISTER_TYPES_H + /* Copyright (c) 2019-2023 Péter Magyar @@ -24,3 +27,5 @@ SOFTWARE. void register_mesh_data_resource_types(ModuleRegistrationLevel p_level); void unregister_mesh_data_resource_types(ModuleRegistrationLevel p_level); + +#endif \ No newline at end of file diff --git a/modules/navigation/register_types.h b/modules/navigation/register_types.h index 3cbbe4884..4b4c11d87 100644 --- a/modules/navigation/register_types.h +++ b/modules/navigation/register_types.h @@ -1,3 +1,6 @@ +#ifndef NAVIGATION_REGISTER_TYPES_H +#define NAVIGATION_REGISTER_TYPES_H + /*************************************************************************/ /* register_types.h */ /*************************************************************************/ @@ -32,3 +35,5 @@ void register_navigation_types(ModuleRegistrationLevel p_level); void unregister_navigation_types(ModuleRegistrationLevel p_level); + +#endif \ No newline at end of file diff --git a/modules/network_synchronizer/register_types.h b/modules/network_synchronizer/register_types.h index d14b59c04..f56bfc20c 100644 --- a/modules/network_synchronizer/register_types.h +++ b/modules/network_synchronizer/register_types.h @@ -1,3 +1,6 @@ +#ifndef NETWORK_SYNCHRONIZER_REGISTER_TYPES_H +#define NETWORK_SYNCHRONIZER_REGISTER_TYPES_H + /*************************************************************************/ /* register_types.h */ /*************************************************************************/ @@ -36,3 +39,5 @@ void register_network_synchronizer_types(ModuleRegistrationLevel p_level); void unregister_network_synchronizer_types(ModuleRegistrationLevel p_level); + +#endif \ No newline at end of file diff --git a/modules/paint/register_types.h b/modules/paint/register_types.h index 01f227829..46a03dceb 100644 --- a/modules/paint/register_types.h +++ b/modules/paint/register_types.h @@ -1,3 +1,6 @@ +#ifndef PAINT_REGISTER_TYPES_H +#define PAINT_REGISTER_TYPES_H + /* Copyright (c) 2019-2023 Péter Magyar @@ -24,3 +27,5 @@ SOFTWARE. void register_paint_types(ModuleRegistrationLevel p_level); void unregister_paint_types(ModuleRegistrationLevel p_level); + +#endif diff --git a/modules/skeleton_2d/register_types.h b/modules/skeleton_2d/register_types.h index b14e85b48..4b21f4e80 100644 --- a/modules/skeleton_2d/register_types.h +++ b/modules/skeleton_2d/register_types.h @@ -1,7 +1,10 @@ - +#ifndef SKELETON_2D_REGISTER_TYPES_H +#define SKELETON_2D_REGISTER_TYPES_H #include "modules/register_module_types.h" void register_skeleton_2d_types(ModuleRegistrationLevel p_level); void unregister_skeleton_2d_types(ModuleRegistrationLevel p_level); + +#endif \ No newline at end of file diff --git a/modules/skeleton_3d/register_types.h b/modules/skeleton_3d/register_types.h index 5de1d1225..af5bfec3b 100644 --- a/modules/skeleton_3d/register_types.h +++ b/modules/skeleton_3d/register_types.h @@ -1,7 +1,10 @@ - +#ifndef SKELETON_3D_REGISTER_TYPES_H +#define SKELETON_3D_REGISTER_TYPES_H #include "modules/register_module_types.h" void register_skeleton_3d_types(ModuleRegistrationLevel p_level); void unregister_skeleton_3d_types(ModuleRegistrationLevel p_level); + +#endif \ No newline at end of file diff --git a/modules/texture_packer/register_types.h b/modules/texture_packer/register_types.h index 12b717589..9ca0d539a 100644 --- a/modules/texture_packer/register_types.h +++ b/modules/texture_packer/register_types.h @@ -1,3 +1,6 @@ +#ifndef TEXTURE_PACKER_REGISTER_TYPES_H +#define TEXTURE_PACKER_REGISTER_TYPES_H + /* Copyright (c) 2019-2023 Péter Magyar @@ -24,3 +27,5 @@ SOFTWARE. void register_texture_packer_types(ModuleRegistrationLevel p_level); void unregister_texture_packer_types(ModuleRegistrationLevel p_level); + +#endif \ No newline at end of file diff --git a/modules/tile_map/register_types.h b/modules/tile_map/register_types.h index 8df80ef1a..fc4e45828 100644 --- a/modules/tile_map/register_types.h +++ b/modules/tile_map/register_types.h @@ -1,3 +1,6 @@ +#ifndef TILE_MAP_REGISTER_TYPES_H +#define TILE_MAP_REGISTER_TYPES_H + /* Copyright (c) 2021 Péter Magyar @@ -24,3 +27,5 @@ SOFTWARE. void register_tile_map_types(ModuleRegistrationLevel p_level); void unregister_tile_map_types(ModuleRegistrationLevel p_level); + +#endif diff --git a/modules/ui_extensions/register_types.h b/modules/ui_extensions/register_types.h index 8b560c061..9a3cf9af4 100644 --- a/modules/ui_extensions/register_types.h +++ b/modules/ui_extensions/register_types.h @@ -1,3 +1,6 @@ +#ifndef UI_EXTENSIONS_REGISTER_TYPES_H +#define UI_EXTENSIONS_REGISTER_TYPES_H + /* Copyright (c) 2019-2023 Péter Magyar @@ -24,3 +27,5 @@ SOFTWARE. void register_ui_extensions_types(ModuleRegistrationLevel p_level); void unregister_ui_extensions_types(ModuleRegistrationLevel p_level); + +#endif \ No newline at end of file diff --git a/modules/wfc/register_types.h b/modules/wfc/register_types.h index ad59c1a2d..6832329c6 100644 --- a/modules/wfc/register_types.h +++ b/modules/wfc/register_types.h @@ -1,5 +1,9 @@ +#ifndef WFC_REGISTER_TYPES_H +#define WFC_REGISTER_TYPES_H #include "modules/register_module_types.h" void register_wfc_types(ModuleRegistrationLevel p_level); void unregister_wfc_types(ModuleRegistrationLevel p_level); + +#endif \ No newline at end of file