From ce72a4975b76c1f244221d7d11e6a4eebc98b99b Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sat, 19 May 2018 20:23:53 +0100 Subject: Using pragma instead of gards The reason for this is that it reduces clashes between names. --- yage/data/cube.h | 2 ++ yage/data/input.h | 5 +---- yage/data/texture.h | 5 +---- yage/data/vertex.h | 5 +---- 4 files changed, 5 insertions(+), 12 deletions(-) (limited to 'yage/data') diff --git a/yage/data/cube.h b/yage/data/cube.h index 2aef00e5..070052c8 100644 --- a/yage/data/cube.h +++ b/yage/data/cube.h @@ -1,3 +1,5 @@ +#pragma once + #include "glad/glad.h" static const GLfloat gl_cube_buffer[] = { diff --git a/yage/data/input.h b/yage/data/input.h index 22cadb62..7a0898ef 100644 --- a/yage/data/input.h +++ b/yage/data/input.h @@ -6,8 +6,7 @@ * ---------------------------------------------------------------------------- */ -#ifndef YAGE_CORE_INPUT_H -#define YAGE_CORE_INPUT_H +#pragma once #ifdef _WIN32 #ifdef DELETE @@ -161,5 +160,3 @@ enum class key { #undef YAGE_DELETE_TMP #endif #endif - -#endif diff --git a/yage/data/texture.h b/yage/data/texture.h index 81b2f004..0f676df2 100644 --- a/yage/data/texture.h +++ b/yage/data/texture.h @@ -6,8 +6,7 @@ * ---------------------------------------------------------------------------- */ -#ifndef YAGE_CORE_TEXTURE_H -#define YAGE_CORE_TEXTURE_H +#pragma once #include @@ -30,5 +29,3 @@ struct Texture { }; } // namespace yage - -#endif diff --git a/yage/data/vertex.h b/yage/data/vertex.h index 4cd095a9..072feb9f 100644 --- a/yage/data/vertex.h +++ b/yage/data/vertex.h @@ -6,8 +6,7 @@ * ---------------------------------------------------------------------------- */ -#ifndef VERTEX_H -#define VERTEX_H +#pragma once #include @@ -80,5 +79,3 @@ struct Vertex { }; } // namespace yage - -#endif -- cgit