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 IOS_API_H
#define IOS_API_H
#pragma once
#if defined(IOS_ENABLED)
extern void godot_ios_plugins_initialize();
@ -38,5 +37,3 @@ extern void godot_ios_plugins_deinitialize();
void register_ios_api();
void unregister_ios_api();
#endif // IOS_API_H

View File

@ -28,6 +28,8 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#pragma once
#import <UIKit/UIKit.h>
@class ViewController;

View File

@ -28,6 +28,8 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#pragma once
#import <Foundation/Foundation.h>
@interface GodotDeviceMetrics : NSObject

View File

@ -28,6 +28,8 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#pragma once
#import <OpenGLES/EAGLDrawable.h>
#import <QuartzCore/QuartzCore.h>

View File

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef DISPLAY_SERVER_IOS_H
#define DISPLAY_SERVER_IOS_H
#pragma once
#include "core/input/input.h"
#include "servers/display_server.h"
@ -235,5 +234,3 @@ public:
void resize_window(CGSize size);
virtual void swap_buffers() override {}
};
#endif // DISPLAY_SERVER_IOS_H

View File

@ -28,10 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef IOS_EXPORT_H
#define IOS_EXPORT_H
#pragma once
void register_ios_exporter_types();
void register_ios_exporter();
#endif // IOS_EXPORT_H

View File

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef IOS_EXPORT_PLUGIN_H
#define IOS_EXPORT_PLUGIN_H
#pragma once
#include "godot_plugin_config.h"
@ -298,5 +297,3 @@ public:
return enabled_plugins;
}
};
#endif // IOS_EXPORT_PLUGIN_H

View File

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef IOS_GODOT_PLUGIN_CONFIG_H
#define IOS_GODOT_PLUGIN_CONFIG_H
#pragma once
#include "core/error/error_list.h"
#include "core/io/config_file.h"
@ -131,5 +130,3 @@ struct PluginConfigIOS {
static PluginConfigIOS load_plugin_config(Ref<ConfigFile> config_file, const String &path);
};
#endif // IOS_GODOT_PLUGIN_CONFIG_H

View File

@ -28,6 +28,8 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#pragma once
#import <UIKit/UIKit.h>
typedef NSObject<UIApplicationDelegate> ApplicationDelegateService;

View File

@ -28,6 +28,8 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#pragma once
#import <UIKit/UIKit.h>
class String;

View File

@ -28,6 +28,8 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#pragma once
#import <UIKit/UIKit.h>
@protocol GodotViewRendererProtocol <NSObject>

View File

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef IOS_H
#define IOS_H
#pragma once
#include "core/object/class_db.h"
@ -58,5 +57,3 @@ public:
iOS();
};
#endif // IOS_H

View File

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef IOS_TERMINAL_LOGGER_H
#define IOS_TERMINAL_LOGGER_H
#pragma once
#ifdef IOS_ENABLED
@ -41,5 +40,3 @@ public:
};
#endif // IOS_ENABLED
#endif // IOS_TERMINAL_LOGGER_H

View File

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef KEY_MAPPING_IOS_H
#define KEY_MAPPING_IOS_H
#pragma once
#include "core/os/keyboard.h"
@ -43,5 +42,3 @@ public:
static Key remap_key(CFIndex p_keycode);
static KeyLocation key_location(CFIndex p_keycode);
};
#endif // KEY_MAPPING_IOS_H

View File

@ -28,6 +28,8 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#pragma once
#import <UIKit/UIKit.h>
@interface GodotKeyboardInputView : UITextView

View File

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef OS_IOS_H
#define OS_IOS_H
#pragma once
#ifdef IOS_ENABLED
@ -137,5 +136,3 @@ public:
};
#endif // IOS_ENABLED
#endif // OS_IOS_H

View File

@ -28,6 +28,8 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#pragma once
#include <alloca.h>
#define PTHREAD_RENAME_SELF

View File

@ -28,13 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef PLATFORM_GL_H
#define PLATFORM_GL_H
#pragma once
#ifndef GLES_API_ENABLED
#define GLES_API_ENABLED // Allow using GLES.
#endif
#include <ES3/gl.h>
#endif // PLATFORM_GL_H

View File

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef RENDERING_CONTEXT_DRIVER_VULKAN_IOS_H
#define RENDERING_CONTEXT_DRIVER_VULKAN_IOS_H
#pragma once
#ifdef VULKAN_ENABLED
@ -54,5 +53,3 @@ public:
};
#endif // VULKAN_ENABLED
#endif // RENDERING_CONTEXT_DRIVER_VULKAN_IOS_H

View File

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef TTS_IOS_H
#define TTS_IOS_H
#pragma once
#include "core/string/ustring.h"
#include "core/templates/hash_map.h"
@ -59,5 +58,3 @@
- (void)speak:(const String &)text voice:(const String &)voice volume:(int)volume pitch:(float)pitch rate:(float)rate utterance_id:(int)utterance_id interrupt:(bool)interrupt;
- (Array)getVoices;
@end
#endif // TTS_IOS_H

View File

@ -28,6 +28,8 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#pragma once
#import <UIKit/UIKit.h>
@class GodotView;