Style: Replace header guards with #pragma once

This commit is contained in:
Thaddeus Crews
2025-03-07 17:58:10 -06:00
parent 107cb1da5e
commit 7056c996dd
68 changed files with 68 additions and 272 deletions

View File

@@ -3,8 +3,7 @@
* This is free and unencumbered software released into the public domain.
*/
#ifndef EXAMPLE_CLASS_H
#define EXAMPLE_CLASS_H
#pragma once
// We don't need windows.h in this example plugin but many others do, and it can
// lead to annoying situations due to the ton of macros it defines.
@@ -289,5 +288,3 @@ protected:
public:
String get_the_word() const;
};
#endif // EXAMPLE_CLASS_H

View File

@@ -3,8 +3,7 @@
* This is free and unencumbered software released into the public domain.
*/
#ifndef EXAMPLE_REGISTER_TYPES_H
#define EXAMPLE_REGISTER_TYPES_H
#pragma once
#include <godot_cpp/core/class_db.hpp>
@@ -12,5 +11,3 @@ using namespace godot;
void initialize_example_module(ModuleInitializationLevel p_level);
void uninitialize_example_module(ModuleInitializationLevel p_level);
#endif // EXAMPLE_REGISTER_TYPES_H

View File

@@ -3,8 +3,7 @@
* This is free and unencumbered software released into the public domain.
*/
#ifndef TESTS_H
#define TESTS_H
#pragma once
#include <godot_cpp/templates/cowdata.hpp>
#include <godot_cpp/templates/hash_map.hpp>
@@ -25,5 +24,3 @@
#include <godot_cpp/templates/vector.hpp>
#include <godot_cpp/templates/vmap.hpp>
#include <godot_cpp/templates/vset.hpp>
#endif // TESTS_H