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
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84
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 JOLT_AREA_3D_H
#define JOLT_AREA_3D_H
#pragma once
#include "jolt_shaped_object_3d.h"
@ -228,5 +227,3 @@ public:
virtual bool has_custom_center_of_mass() const override { return false; }
virtual Vector3 get_center_of_mass_custom() const override { return Vector3(); }
};
#endif // JOLT_AREA_3D_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef JOLT_BODY_3D_H
#define JOLT_BODY_3D_H
#pragma once
#include "jolt_physics_direct_body_state_3d.h"
#include "jolt_shaped_object_3d.h"
@ -305,5 +304,3 @@ public:
virtual bool can_interact_with(const JoltSoftBody3D &p_other) const override;
virtual bool can_interact_with(const JoltArea3D &p_other) const override;
};
#endif // JOLT_BODY_3D_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef JOLT_GROUP_FILTER_H
#define JOLT_GROUP_FILTER_H
#pragma once
#include "Jolt/Jolt.h"
@ -47,5 +46,3 @@ public:
static void encode_object(const JoltObject3D *p_object, JPH::CollisionGroup::GroupID &r_group_id, JPH::CollisionGroup::SubGroupID &r_sub_group_id);
static const JoltObject3D *decode_object(JPH::CollisionGroup::GroupID p_group_id, JPH::CollisionGroup::SubGroupID p_sub_group_id);
};
#endif // JOLT_GROUP_FILTER_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef JOLT_OBJECT_3D_H
#define JOLT_OBJECT_3D_H
#pragma once
#include "../shapes/jolt_shape_instance_3d.h"
@ -152,5 +151,3 @@ public:
String to_string() const;
};
#endif // JOLT_OBJECT_3D_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef JOLT_PHYSICS_DIRECT_BODY_STATE_3D_H
#define JOLT_PHYSICS_DIRECT_BODY_STATE_3D_H
#pragma once
#include "servers/physics_server_3d.h"
@ -112,5 +111,3 @@ public:
virtual PhysicsDirectSpaceState3D *get_space_state() override;
};
#endif // JOLT_PHYSICS_DIRECT_BODY_STATE_3D_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef JOLT_SHAPED_OBJECT_3D_H
#define JOLT_SHAPED_OBJECT_3D_H
#pragma once
#include "jolt_object_3d.h"
@ -129,5 +128,3 @@ public:
bool is_shape_disabled(int p_index) const;
void set_shape_disabled(int p_index, bool p_disabled);
};
#endif // JOLT_SHAPED_OBJECT_3D_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef JOLT_SOFT_BODY_3D_H
#define JOLT_SOFT_BODY_3D_H
#pragma once
#include "jolt_object_3d.h"
@ -168,5 +167,3 @@ public:
bool is_vertex_pinned(int p_index) const;
};
#endif // JOLT_SOFT_BODY_3D_H