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 MAIN_H
#define MAIN_H
#pragma once
#include "core/error/error_list.h"
#include "core/os/thread.h"
@@ -102,5 +101,3 @@ public:
if (run_test) { \
return return_code; \
}
#endif // MAIN_H

View File

@@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef MAIN_TIMER_SYNC_H
#define MAIN_TIMER_SYNC_H
#pragma once
#include "core/config/engine.h"
@@ -161,5 +160,3 @@ public:
// advance one frame, return timesteps to take
MainFrameTime advance(double p_physics_step, int p_physics_ticks_per_second);
};
#endif // MAIN_TIMER_SYNC_H

View File

@@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef PERFORMANCE_H
#define PERFORMANCE_H
#pragma once
#include "core/object/class_db.h"
#include "core/templates/hash_map.h"
@@ -138,5 +137,3 @@ public:
};
VARIANT_ENUM_CAST(Performance::Monitor);
#endif // PERFORMANCE_H

View File

@@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef STEAM_TRACKER_H
#define STEAM_TRACKER_H
#pragma once
#if defined(STEAMAPI_ENABLED)
@@ -70,5 +69,3 @@ public:
};
#endif // STEAMAPI_ENABLED
#endif // STEAM_TRACKER_H