1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

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 JSONRPC_H
#define JSONRPC_H
#pragma once
#include "core/object/class_db.h"
#include "core/variant/variant.h"
@@ -66,5 +65,3 @@ public:
};
VARIANT_ENUM_CAST(JSONRPC::ErrorCode);
#endif // JSONRPC_H

View File

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

View File

@@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef TEST_JSONRPC_H
#define TEST_JSONRPC_H
#pragma once
#include "tests/test_macros.h"
#include "tests/test_utils.h"
@@ -135,5 +134,3 @@ TEST_CASE("[JSONRPC] process_action bad method") {
}
} // namespace TestJSONRPC
#endif // TEST_JSONRPC_H