mirror of
https://github.com/godotengine/godot-cpp.git
synced 2026-01-01 05:48:37 +03:00
Style: Replace header guards with #pragma once
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user