Style: Replace header guards with #pragma once

This commit is contained in:
Thaddeus Crews
2025-02-01 10:33:58 -06:00
parent 96fdaa616b
commit 324512e11c
1746 changed files with 1767 additions and 6920 deletions

View File

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef NOISE_EDITOR_PLUGIN_H
#define NOISE_EDITOR_PLUGIN_H
#pragma once
#ifdef TOOLS_ENABLED
@ -45,5 +44,3 @@ public:
};
#endif // TOOLS_ENABLED
#endif // NOISE_EDITOR_PLUGIN_H

View File

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef FASTNOISE_LITE_H
#define FASTNOISE_LITE_H
#pragma once
#include "noise.h"
@ -220,5 +219,3 @@ VARIANT_ENUM_CAST(FastNoiseLite::CellularDistanceFunction);
VARIANT_ENUM_CAST(FastNoiseLite::CellularReturnType);
VARIANT_ENUM_CAST(FastNoiseLite::DomainWarpType);
VARIANT_ENUM_CAST(FastNoiseLite::DomainWarpFractalType);
#endif // FASTNOISE_LITE_H

View File

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef NOISE_H
#define NOISE_H
#pragma once
#include "core/io/image.h"
#include "core/variant/typed_array.h"
@ -298,5 +297,3 @@ public:
virtual Ref<Image> get_seamless_image(int p_width, int p_height, bool p_invert = false, bool p_in_3d_space = false, real_t p_blend_skirt = 0.1, bool p_normalize = true) const;
virtual TypedArray<Image> get_seamless_image_3d(int p_width, int p_height, int p_depth, bool p_invert = false, real_t p_blend_skirt = 0.1, bool p_normalize = true) const;
};
#endif // NOISE_H

View File

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef NOISE_TEXTURE_2D_H
#define NOISE_TEXTURE_2D_H
#pragma once
#include "noise.h"
@ -123,5 +122,3 @@ public:
NoiseTexture2D();
virtual ~NoiseTexture2D();
};
#endif // NOISE_TEXTURE_2D_H

View File

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef NOISE_TEXTURE_3D_H
#define NOISE_TEXTURE_3D_H
#pragma once
#include "noise.h"
@ -113,5 +112,3 @@ public:
NoiseTexture3D();
virtual ~NoiseTexture3D();
};
#endif // NOISE_TEXTURE_3D_H

View File

@ -28,12 +28,9 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef NOISE_REGISTER_TYPES_H
#define NOISE_REGISTER_TYPES_H
#pragma once
#include "modules/register_module_types.h"
void initialize_noise_module(ModuleInitializationLevel p_level);
void uninitialize_noise_module(ModuleInitializationLevel p_level);
#endif // NOISE_REGISTER_TYPES_H

View File

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef TEST_FASTNOISE_LITE_H
#define TEST_FASTNOISE_LITE_H
#pragma once
#include "../fastnoise_lite.h"
@ -633,5 +632,3 @@ TEST_CASE("[FastNoiseLite] Generating seamless 2D images (11x11px) and compare t
}
} //namespace TestFastNoiseLite
#endif // TEST_FASTNOISE_LITE_H

View File

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef TEST_NOISE_TEXTURE_2D_H
#define TEST_NOISE_TEXTURE_2D_H
#pragma once
#include "../noise_texture_2d.h"
@ -266,5 +265,3 @@ TEST_CASE("[NoiseTexture2D][SceneTree] Generating a seamless noise texture") {
}
} //namespace TestNoiseTexture2D
#endif // TEST_NOISE_TEXTURE_2D_H

View File

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef TEST_NOISE_TEXTURE_3D_H
#define TEST_NOISE_TEXTURE_3D_H
#pragma once
#include "../noise_texture_3d.h"
@ -234,5 +233,3 @@ TEST_CASE("[NoiseTexture3D][SceneTree] Generating a seamless noise texture") {
}
} //namespace TestNoiseTexture3D
#endif // TEST_NOISE_TEXTURE_3D_H