From 15ada13bf8d99df0bd796cd4c9e4bb807762e9da Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Tue, 2 Feb 2016 21:18:54 +0100 Subject: [PATCH] [DEV] replace 'include guard' with 'pragma once' --- ege/AudioElement.h | 9 +++------ ege/AudioEngine.h | 8 ++------ ege/CollisionShapeCreator.h | 9 +++------ ege/Environement.h | 8 ++------ ege/Game.h | 8 +------- ege/Light.h | 9 ++------- ege/Material.h | 9 ++------- ege/Particule.h | 9 +++------ ege/ParticuleEngine.h | 8 ++------ ege/ParticuleSimple.h | 8 ++------ ege/Ray.h | 7 ++----- ege/camera/Camera.h | 8 ++------ ege/camera/View.h | 10 +++------- ege/debug.h | 5 +---- ege/elements/Element.h | 8 ++------ ege/elements/ElementBase.h | 9 ++------- ege/elements/ElementPhysic.h | 8 ++------ ege/physics/Engine.h | 9 +++------ ege/physicsShape/PhysicsBox.h | 7 ++----- ege/physicsShape/PhysicsCapsule.h | 8 ++------ ege/physicsShape/PhysicsCone.h | 10 ++-------- ege/physicsShape/PhysicsConvexHull.h | 10 ++-------- ege/physicsShape/PhysicsCylinder.h | 7 ++----- ege/physicsShape/PhysicsShape.h | 10 ++-------- ege/physicsShape/PhysicsSphere.h | 7 ++----- ege/resource/Mesh.h | 10 +++------- ege/resource/ParticuleMesh.h | 11 +++-------- ege/resource/tools/Face.h | 7 ++----- ege/resource/tools/FaceIndexing.h | 8 ++------ ege/resource/tools/icoSphere.h | 11 +++-------- ege/resource/tools/isoSphere.h | 11 +++-------- ege/resource/tools/viewBox.h | 11 +++-------- ege/widget/Mesh.h | 11 +++-------- ege/widget/Scene.h | 11 +++-------- sample/CameraPosition/appl/Windows.h | 8 ++------ sample/CameraPosition/appl/debug.h | 6 +----- sample/CameraPosition/appl/main.h | 7 +------ sample/Collision/appl/Windows.h | 8 ++------ sample/Collision/appl/debug.h | 6 +----- sample/Collision/appl/main.h | 7 +------ sample/DoubleView/appl/Windows.h | 8 ++------ sample/DoubleView/appl/debug.h | 6 +----- sample/DoubleView/appl/main.h | 7 +------ sample/MeshCreator/appl/Windows.h | 8 ++------ sample/MeshCreator/appl/debug.h | 6 +----- sample/MeshCreator/appl/main.h | 7 +------ sample/RayTest/appl/Windows.h | 8 ++------ sample/RayTest/appl/debug.h | 6 +----- sample/RayTest/appl/main.h | 7 +------ 49 files changed, 98 insertions(+), 306 deletions(-) diff --git a/ege/AudioElement.h b/ege/AudioElement.h index 9234efe..545099c 100644 --- a/ege/AudioElement.h +++ b/ege/AudioElement.h @@ -5,14 +5,11 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_AUDIO_ELEMENT_H__ -#define __EGE_AUDIO_ELEMENT_H__ +#pragma once namespace ege { -}; - -#endif +} + diff --git a/ege/AudioEngine.h b/ege/AudioEngine.h index c4968fc..a071632 100644 --- a/ege/AudioEngine.h +++ b/ege/AudioEngine.h @@ -5,14 +5,10 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_AUDIO_ENGINE_H__ -#define __EGE_AUDIO_ENGINE_H__ +#pragma once namespace ege { -}; - -#endif +} diff --git a/ege/CollisionShapeCreator.h b/ege/CollisionShapeCreator.h index 183b40a..449b2fb 100644 --- a/ege/CollisionShapeCreator.h +++ b/ege/CollisionShapeCreator.h @@ -6,9 +6,7 @@ * @license BSD v3 (see license file) * */ - -#ifndef __EGE_COLLISION_SHAPE_CREATOR_H__ -#define __EGE_COLLISION_SHAPE_CREATOR_H__ +#pragma once #include #include @@ -17,7 +15,6 @@ namespace ege { namespace collision { btCollisionShape* createShape(const std::shared_ptr& _mesh); - }; -}; -#endif + } +} diff --git a/ege/Environement.h b/ege/Environement.h index 009ff02..3097fcd 100644 --- a/ege/Environement.h +++ b/ege/Environement.h @@ -5,9 +5,7 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_ENVIRONEMENT_H__ -#define __EGE_ENVIRONEMENT_H__ +#pragma once namespace ege { class Environement; @@ -276,8 +274,6 @@ namespace ege { } virtual void onParameterChangeValue(const ewol::parameter::Ref& _paramPointer); }; -}; - -#endif +} diff --git a/ege/Game.h b/ege/Game.h index db13c54..f04ebbc 100644 --- a/ege/Game.h +++ b/ege/Game.h @@ -5,9 +5,7 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_SCENE_H__ -#define __EGE_SCENE_H__ +#pragma once #include #include @@ -49,9 +47,5 @@ namespace ege { ege::PhysicEngine m_physicEngine; //!< physic engine interface ege::AudioEngine m_AudioEngine; //!< physic engine interface ege::IAEngine m_iAEngine; //!< physic engine interface - } } - - -#endif diff --git a/ege/Light.h b/ege/Light.h index aac5bb1..e4061b5 100644 --- a/ege/Light.h +++ b/ege/Light.h @@ -5,9 +5,7 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_LIGHT_H__ -#define __EGE_LIGHT_H__ +#pragma once #include #include @@ -54,8 +52,5 @@ namespace ege { friend std::ostream& operator <<(std::ostream& _os, const ege::Light& _obj); }; std::ostream& operator <<(std::ostream& _os, const ege::Light& _obj); -}; - - -#endif +} diff --git a/ege/Material.h b/ege/Material.h index ef95e82..ca2b6f2 100644 --- a/ege/Material.h +++ b/ege/Material.h @@ -5,9 +5,7 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_MATERIAL_H__ -#define __EGE_MATERIAL_H__ +#pragma once #include #include @@ -88,9 +86,6 @@ namespace ege { m_texture0->flush(); }; }; - -}; +} -#endif - diff --git a/ege/Particule.h b/ege/Particule.h index b54794d..911a348 100644 --- a/ege/Particule.h +++ b/ege/Particule.h @@ -5,9 +5,7 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_PARTICULE_H__ -#define __EGE_PARTICULE_H__ +#pragma once namespace ege { class Particule; @@ -76,8 +74,7 @@ namespace ege { */ virtual void onEnd() {}; }; -}; - -#endif +} + diff --git a/ege/ParticuleEngine.h b/ege/ParticuleEngine.h index d02d08b..c70da27 100644 --- a/ege/ParticuleEngine.h +++ b/ege/ParticuleEngine.h @@ -7,9 +7,7 @@ */ #include - -#ifndef __EGE_PARTICULE_ENGINE_H__ -#define __EGE_PARTICULE_ENGINE_H__ +#pragma once namespace ege { class ParticuleEngine; @@ -66,8 +64,6 @@ namespace ege { Particule* respown(const char* _particuleType); }; -}; - -#endif +} diff --git a/ege/ParticuleSimple.h b/ege/ParticuleSimple.h index 76413c6..85b29ba 100644 --- a/ege/ParticuleSimple.h +++ b/ege/ParticuleSimple.h @@ -5,9 +5,7 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_PARTICULE_SIMPLE_H__ -#define __EGE_PARTICULE_SIMPLE_H__ +#pragma once namespace ege { class ParticuleSimple; @@ -65,8 +63,6 @@ namespace ege { virtual void setScale(const vec3& _scale); virtual void setScaleExpend(const vec3& _scaleExpand); }; -}; - -#endif +} diff --git a/ege/Ray.h b/ege/Ray.h index e38d2f0..6a5c9d6 100644 --- a/ege/Ray.h +++ b/ege/Ray.h @@ -5,9 +5,7 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_RAY_H__ -#define __EGE_RAY_H__ +#pragma once #include namespace ege { @@ -73,6 +71,5 @@ namespace ege { vec3 testRayZeroPlane(); }; std::ostream& operator <<(std::ostream& _os, const ege::Ray& _obj); -}; +} -#endif diff --git a/ege/camera/Camera.h b/ege/camera/Camera.h index f2ba8ea..24f7cba 100644 --- a/ege/camera/Camera.h +++ b/ege/camera/Camera.h @@ -6,8 +6,7 @@ * @license BSD v3 (see license file) */ -#ifndef __EGE_CAMERA_H__ -#define __EGE_CAMERA_H__ +#pragma once #include @@ -173,9 +172,6 @@ namespace ege { * @param[in,out] draw Basic system to draw the debug shape and informations */ virtual void drawDebug(const std::shared_ptr& _draw, const std::shared_ptr& _camera) { } - }; -}; - -#endif +} diff --git a/ege/camera/View.h b/ege/camera/View.h index 1aa21da..2d56301 100644 --- a/ege/camera/View.h +++ b/ege/camera/View.h @@ -5,9 +5,7 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_CAMERA_VIEW_H__ -#define __EGE_CAMERA_VIEW_H__ +#pragma once #include @@ -81,8 +79,6 @@ namespace ege { virtual float getTetha(); virtual float getPsy(); }; - }; -}; - -#endif + } +} diff --git a/ege/debug.h b/ege/debug.h index fe0c8ed..620a23d 100644 --- a/ege/debug.h +++ b/ege/debug.h @@ -5,9 +5,7 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_DEBUG_H__ -#define __EGE_DEBUG_H__ +#pragma once #include @@ -39,5 +37,4 @@ namespace ege { } \ } while (0) -#endif diff --git a/ege/elements/Element.h b/ege/elements/Element.h index 64fda90..ac39f9d 100644 --- a/ege/elements/Element.h +++ b/ege/elements/Element.h @@ -5,9 +5,7 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_ELEMENT_H__ -#define __EGE_ELEMENT_H__ +#pragma once #include #include @@ -230,8 +228,6 @@ namespace ege { */ virtual void dynamicDisable() {}; }; -}; - -#endif +} diff --git a/ege/elements/ElementBase.h b/ege/elements/ElementBase.h index bdb2b3e..c78659a 100644 --- a/ege/elements/ElementBase.h +++ b/ege/elements/ElementBase.h @@ -5,9 +5,7 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_ELEMENT_BASE_H__ -#define __EGE_ELEMENT_BASE_H__ +#pragma once #include @@ -37,8 +35,5 @@ namespace ege { virtual const vec3& getPosition(); virtual void setPosition(const vec3& _pos); }; -}; - -#endif - +} diff --git a/ege/elements/ElementPhysic.h b/ege/elements/ElementPhysic.h index 450bb3b..1dded7d 100644 --- a/ege/elements/ElementPhysic.h +++ b/ege/elements/ElementPhysic.h @@ -5,9 +5,7 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_ELEMENT_PHYSIC_H__ -#define __EGE_ELEMENT_PHYSIC_H__ +#pragma once #include #include @@ -208,8 +206,6 @@ namespace ege { */ virtual void onCollisionDetected(const std::shared_ptr& _obj, const vec3& _point, const vec3& _normal) {}; }; -}; - -#endif +} diff --git a/ege/physics/Engine.h b/ege/physics/Engine.h index 74ef140..d98152c 100644 --- a/ege/physics/Engine.h +++ b/ege/physics/Engine.h @@ -5,9 +5,7 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_PHYSICS_ENGINE_H__ -#define __EGE_PHYSICS_ENGINE_H__ +#pragma once namespace ege { namespace physics { @@ -99,7 +97,6 @@ namespace ege { */ std::vector getListOfCollision(); }; - }; -}; + } +} -#endif diff --git a/ege/physicsShape/PhysicsBox.h b/ege/physicsShape/PhysicsBox.h index a31e9b9..6669714 100644 --- a/ege/physicsShape/PhysicsBox.h +++ b/ege/physicsShape/PhysicsBox.h @@ -5,9 +5,7 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_PHYSICS_BOX_H__ -#define __EGE_PHYSICS_BOX_H__ +#pragma once #include @@ -42,6 +40,5 @@ namespace ege { return this; }; }; -}; +} -#endif diff --git a/ege/physicsShape/PhysicsCapsule.h b/ege/physicsShape/PhysicsCapsule.h index 2d2ba6a..9312569 100644 --- a/ege/physicsShape/PhysicsCapsule.h +++ b/ege/physicsShape/PhysicsCapsule.h @@ -5,9 +5,7 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_PHYSICS_CAPSULE_H__ -#define __EGE_PHYSICS_CAPSULE_H__ +#pragma once #include @@ -46,7 +44,5 @@ namespace ege { return this; }; }; -}; +} - -#endif diff --git a/ege/physicsShape/PhysicsCone.h b/ege/physicsShape/PhysicsCone.h index fdec0a6..3537f04 100644 --- a/ege/physicsShape/PhysicsCone.h +++ b/ege/physicsShape/PhysicsCone.h @@ -5,15 +5,11 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_PHYSICS_CONE_H__ -#define __EGE_PHYSICS_CONE_H__ - +#pragma once #include #include - namespace ege { class PhysicsCone : public ege::PhysicsShape { public: @@ -46,7 +42,5 @@ namespace ege { return this; }; }; -}; +} - -#endif diff --git a/ege/physicsShape/PhysicsConvexHull.h b/ege/physicsShape/PhysicsConvexHull.h index b2c7f20..bc838d0 100644 --- a/ege/physicsShape/PhysicsConvexHull.h +++ b/ege/physicsShape/PhysicsConvexHull.h @@ -5,15 +5,11 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_PHYSICS_CONVEX_HULL_H__ -#define __EGE_PHYSICS_CONVEX_HULL_H__ - +#pragma once #include #include - namespace ege { class PhysicsConvexHull : public ege::PhysicsShape { public: @@ -46,7 +42,5 @@ namespace ege { return this; }; }; -}; +} - -#endif diff --git a/ege/physicsShape/PhysicsCylinder.h b/ege/physicsShape/PhysicsCylinder.h index 4e37240..38658d3 100644 --- a/ege/physicsShape/PhysicsCylinder.h +++ b/ege/physicsShape/PhysicsCylinder.h @@ -5,9 +5,7 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_PHYSICS_CYLINDER_H__ -#define __EGE_PHYSICS_CYLINDER_H__ +#pragma once #include @@ -40,6 +38,5 @@ namespace ege { return this; }; }; -}; +} -#endif diff --git a/ege/physicsShape/PhysicsShape.h b/ege/physicsShape/PhysicsShape.h index 5edad94..26ac09d 100644 --- a/ege/physicsShape/PhysicsShape.h +++ b/ege/physicsShape/PhysicsShape.h @@ -5,10 +5,7 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_PHYSICS_SHAPE_H__ -#define __EGE_PHYSICS_SHAPE_H__ - +#pragma once #include #include @@ -131,8 +128,5 @@ namespace ege { return nullptr; }; }; -}; - - -#endif +} diff --git a/ege/physicsShape/PhysicsSphere.h b/ege/physicsShape/PhysicsSphere.h index d0a64d9..b607100 100644 --- a/ege/physicsShape/PhysicsSphere.h +++ b/ege/physicsShape/PhysicsSphere.h @@ -5,9 +5,7 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_PHYSICS_SPHERE_H__ -#define __EGE_PHYSICS_SPHERE_H__ +#pragma once #include @@ -43,6 +41,5 @@ namespace ege { return this; }; }; -}; +} -#endif diff --git a/ege/resource/Mesh.h b/ege/resource/Mesh.h index 7fb8eae..a7f2ca8 100644 --- a/ege/resource/Mesh.h +++ b/ege/resource/Mesh.h @@ -5,9 +5,7 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_MESH_H__ -#define __EGE_MESH_H__ +#pragma once #include #include @@ -298,8 +296,6 @@ namespace ege { int32_t findTextureInList(const vec2& _uv); int32_t findColorInList(const etk::Color& _color); }; - }; -}; + } +} - -#endif diff --git a/ege/resource/ParticuleMesh.h b/ege/resource/ParticuleMesh.h index 5b1af81..1ad28c9 100644 --- a/ege/resource/ParticuleMesh.h +++ b/ege/resource/ParticuleMesh.h @@ -5,9 +5,7 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_RESOURCE_PARTICULE_MESH_H__ -#define __EGE_RESOURCE_PARTICULE_MESH_H__ +#pragma once #include @@ -28,8 +26,5 @@ namespace ege { bool _enableDepthTest = true, bool _enableDepthUpdate = true); }; - }; -}; - - -#endif + } +} \ No newline at end of file diff --git a/ege/resource/tools/Face.h b/ege/resource/tools/Face.h index 8083cb8..3e39934 100644 --- a/ege/resource/tools/Face.h +++ b/ege/resource/tools/Face.h @@ -5,9 +5,7 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_FACE_H__ -#define __EGE_FACE_H__ +#pragma once namespace ege { /** @@ -101,6 +99,5 @@ namespace ege { m_color[2] = _c3; } }; -}; +} -#endif diff --git a/ege/resource/tools/FaceIndexing.h b/ege/resource/tools/FaceIndexing.h index 442a946..70834ab 100644 --- a/ege/resource/tools/FaceIndexing.h +++ b/ege/resource/tools/FaceIndexing.h @@ -5,9 +5,7 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_FACE_INDEXING_H__ -#define __EGE_FACE_INDEXING_H__ +#pragma once namespace ege { class FaceIndexing { @@ -15,7 +13,5 @@ namespace ege { std::vector m_faces; std::vector m_index; }; -}; - -#endif +} diff --git a/ege/resource/tools/icoSphere.h b/ege/resource/tools/icoSphere.h index 9e16c57..5699ae3 100644 --- a/ege/resource/tools/icoSphere.h +++ b/ege/resource/tools/icoSphere.h @@ -5,9 +5,7 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_TOOLS_ICOSPHERE_H__ -#define __EGE_TOOLS_ICOSPHERE_H__ +#pragma once #include #include @@ -18,9 +16,6 @@ namespace ege { namespace icoSphere { void create(etk::Hash>& _materials, etk::Hash& _listFaces, std::vector& _listVertex, std::vector& _listUV, const std::string& _materialName, float _size, int32_t _recursionLevel); - }; -}; - - -#endif + } +} diff --git a/ege/resource/tools/isoSphere.h b/ege/resource/tools/isoSphere.h index 65335c6..c7bed4a 100644 --- a/ege/resource/tools/isoSphere.h +++ b/ege/resource/tools/isoSphere.h @@ -5,9 +5,7 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_TOOLS_ISOSPHERE_H__ -#define __EGE_TOOLS_ISOSPHERE_H__ +#pragma once #include #include @@ -18,9 +16,6 @@ namespace ege { namespace isoSphere { void create(etk::Hash>& _materials, etk::Hash& _listFaces, std::vector& _listVertex, std::vector& _listUV, const std::string& _materialName, int32_t _recursionLevel); - }; -}; - - -#endif + } +} diff --git a/ege/resource/tools/viewBox.h b/ege/resource/tools/viewBox.h index 7ba21cd..a53baa4 100644 --- a/ege/resource/tools/viewBox.h +++ b/ege/resource/tools/viewBox.h @@ -5,9 +5,7 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_TOOLS_VIEWBOX_H__ -#define __EGE_TOOLS_VIEWBOX_H__ +#pragma once #include #include @@ -18,9 +16,6 @@ namespace ege { namespace viewBox { void create(etk::Hash>& _materials, etk::Hash& _listFaces, std::vector& _listVertex, std::vector& _listUV, const std::string& _materialName, float _size); - }; -}; - - -#endif + } +} diff --git a/ege/widget/Mesh.h b/ege/widget/Mesh.h index 6316292..d0be3d6 100644 --- a/ege/widget/Mesh.h +++ b/ege/widget/Mesh.h @@ -5,9 +5,7 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EWOL_WIDGET_MESH_H__ -#define __EWOL_WIDGET_MESH_H__ +#pragma once #include #include @@ -68,8 +66,5 @@ namespace ege { */ void setDistance(float _distance); }; - }; -}; - - -#endif + } +} \ No newline at end of file diff --git a/ege/widget/Scene.h b/ege/widget/Scene.h index 98c7528..896cb45 100644 --- a/ege/widget/Scene.h +++ b/ege/widget/Scene.h @@ -5,9 +5,7 @@ * * @license BSD v3 (see license file) */ - -#ifndef __EGE_SCENE_H__ -#define __EGE_SCENE_H__ +#pragma once #include #include @@ -116,9 +114,6 @@ namespace ege { return m_debugApplication.get(); } }; - }; -}; - -#endif - + } +} diff --git a/sample/CameraPosition/appl/Windows.h b/sample/CameraPosition/appl/Windows.h index 2e1c631..8c569e2 100644 --- a/sample/CameraPosition/appl/Windows.h +++ b/sample/CameraPosition/appl/Windows.h @@ -5,9 +5,7 @@ * * @license APACHE-2 (see license file) */ - -#ifndef __APPL_WINDOWS_H__ -#define __APPL_WINDOWS_H__ +#pragma once #include #include @@ -27,7 +25,5 @@ namespace appl { private: void onCallbackPeriodicUpdateCamera(const ewol::event::Time& _event); }; -}; +} - -#endif \ No newline at end of file diff --git a/sample/CameraPosition/appl/debug.h b/sample/CameraPosition/appl/debug.h index 8036fb5..f22e251 100644 --- a/sample/CameraPosition/appl/debug.h +++ b/sample/CameraPosition/appl/debug.h @@ -5,10 +5,7 @@ * * @license APACHE-2 (see license file) */ - - -#ifndef __APPL_DEBUG_H__ -#define __APPL_DEBUG_H__ +#pragma once #include @@ -49,4 +46,3 @@ namespace appl { } \ } while (0) -#endif diff --git a/sample/CameraPosition/appl/main.h b/sample/CameraPosition/appl/main.h index caa7110..afaac04 100644 --- a/sample/CameraPosition/appl/main.h +++ b/sample/CameraPosition/appl/main.h @@ -5,10 +5,5 @@ * * @license APACHE-2 (see license file) */ - -#ifndef __APPL_MAIN_H__ -#define __APPL_MAIN_H__ - - -#endif +#pragma once diff --git a/sample/Collision/appl/Windows.h b/sample/Collision/appl/Windows.h index 0a4cc3d..1a34278 100644 --- a/sample/Collision/appl/Windows.h +++ b/sample/Collision/appl/Windows.h @@ -5,9 +5,7 @@ * * @license APACHE-2 (see license file) */ - -#ifndef __APPL_WINDOWS_H__ -#define __APPL_WINDOWS_H__ +#pragma once #include #include @@ -32,7 +30,5 @@ namespace appl { vec2 m_oldScreenPos; void onCallbackPeriodicCheckCollision(const ewol::event::Time& _event); }; -}; +} - -#endif \ No newline at end of file diff --git a/sample/Collision/appl/debug.h b/sample/Collision/appl/debug.h index 8036fb5..f22e251 100644 --- a/sample/Collision/appl/debug.h +++ b/sample/Collision/appl/debug.h @@ -5,10 +5,7 @@ * * @license APACHE-2 (see license file) */ - - -#ifndef __APPL_DEBUG_H__ -#define __APPL_DEBUG_H__ +#pragma once #include @@ -49,4 +46,3 @@ namespace appl { } \ } while (0) -#endif diff --git a/sample/Collision/appl/main.h b/sample/Collision/appl/main.h index caa7110..afaac04 100644 --- a/sample/Collision/appl/main.h +++ b/sample/Collision/appl/main.h @@ -5,10 +5,5 @@ * * @license APACHE-2 (see license file) */ - -#ifndef __APPL_MAIN_H__ -#define __APPL_MAIN_H__ - - -#endif +#pragma once diff --git a/sample/DoubleView/appl/Windows.h b/sample/DoubleView/appl/Windows.h index 2e619b8..b3fc66e 100644 --- a/sample/DoubleView/appl/Windows.h +++ b/sample/DoubleView/appl/Windows.h @@ -5,9 +5,7 @@ * * @license APACHE-2 (see license file) */ - -#ifndef __APPL_WINDOWS_H__ -#define __APPL_WINDOWS_H__ +#pragma once #include #include @@ -31,7 +29,5 @@ namespace appl { float m_anglePsy; vec2 m_oldScreenPos; }; -}; +} - -#endif \ No newline at end of file diff --git a/sample/DoubleView/appl/debug.h b/sample/DoubleView/appl/debug.h index 8036fb5..f22e251 100644 --- a/sample/DoubleView/appl/debug.h +++ b/sample/DoubleView/appl/debug.h @@ -5,10 +5,7 @@ * * @license APACHE-2 (see license file) */ - - -#ifndef __APPL_DEBUG_H__ -#define __APPL_DEBUG_H__ +#pragma once #include @@ -49,4 +46,3 @@ namespace appl { } \ } while (0) -#endif diff --git a/sample/DoubleView/appl/main.h b/sample/DoubleView/appl/main.h index caa7110..afaac04 100644 --- a/sample/DoubleView/appl/main.h +++ b/sample/DoubleView/appl/main.h @@ -5,10 +5,5 @@ * * @license APACHE-2 (see license file) */ - -#ifndef __APPL_MAIN_H__ -#define __APPL_MAIN_H__ - - -#endif +#pragma once diff --git a/sample/MeshCreator/appl/Windows.h b/sample/MeshCreator/appl/Windows.h index 2e1c631..8c569e2 100644 --- a/sample/MeshCreator/appl/Windows.h +++ b/sample/MeshCreator/appl/Windows.h @@ -5,9 +5,7 @@ * * @license APACHE-2 (see license file) */ - -#ifndef __APPL_WINDOWS_H__ -#define __APPL_WINDOWS_H__ +#pragma once #include #include @@ -27,7 +25,5 @@ namespace appl { private: void onCallbackPeriodicUpdateCamera(const ewol::event::Time& _event); }; -}; +} - -#endif \ No newline at end of file diff --git a/sample/MeshCreator/appl/debug.h b/sample/MeshCreator/appl/debug.h index 8036fb5..f22e251 100644 --- a/sample/MeshCreator/appl/debug.h +++ b/sample/MeshCreator/appl/debug.h @@ -5,10 +5,7 @@ * * @license APACHE-2 (see license file) */ - - -#ifndef __APPL_DEBUG_H__ -#define __APPL_DEBUG_H__ +#pragma once #include @@ -49,4 +46,3 @@ namespace appl { } \ } while (0) -#endif diff --git a/sample/MeshCreator/appl/main.h b/sample/MeshCreator/appl/main.h index caa7110..afaac04 100644 --- a/sample/MeshCreator/appl/main.h +++ b/sample/MeshCreator/appl/main.h @@ -5,10 +5,5 @@ * * @license APACHE-2 (see license file) */ - -#ifndef __APPL_MAIN_H__ -#define __APPL_MAIN_H__ - - -#endif +#pragma once diff --git a/sample/RayTest/appl/Windows.h b/sample/RayTest/appl/Windows.h index 4efabde..4185ebf 100644 --- a/sample/RayTest/appl/Windows.h +++ b/sample/RayTest/appl/Windows.h @@ -5,9 +5,7 @@ * * @license APACHE-2 (see license file) */ - -#ifndef __APPL_WINDOWS_H__ -#define __APPL_WINDOWS_H__ +#pragma once #include #include @@ -34,7 +32,5 @@ namespace appl { vec2 m_oldScreenPos; std::pair m_destination; }; -}; +} - -#endif \ No newline at end of file diff --git a/sample/RayTest/appl/debug.h b/sample/RayTest/appl/debug.h index 8036fb5..f22e251 100644 --- a/sample/RayTest/appl/debug.h +++ b/sample/RayTest/appl/debug.h @@ -5,10 +5,7 @@ * * @license APACHE-2 (see license file) */ - - -#ifndef __APPL_DEBUG_H__ -#define __APPL_DEBUG_H__ +#pragma once #include @@ -49,4 +46,3 @@ namespace appl { } \ } while (0) -#endif diff --git a/sample/RayTest/appl/main.h b/sample/RayTest/appl/main.h index caa7110..afaac04 100644 --- a/sample/RayTest/appl/main.h +++ b/sample/RayTest/appl/main.h @@ -5,10 +5,5 @@ * * @license APACHE-2 (see license file) */ - -#ifndef __APPL_MAIN_H__ -#define __APPL_MAIN_H__ - - -#endif +#pragma once