diff options
author | David Robillard <d@drobilla.net> | 2020-10-21 12:23:24 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-21 15:43:29 +0200 |
commit | feb6c4f7952eafbc8c2203ef0c657ea3580ee441 (patch) | |
tree | d67ed34eb9955720fd63b961f9b07ce00f5321a9 /examples | |
parent | 063ddc8db2831e1f79d7569c8fc80dd3d54f5cda (diff) | |
download | pugl-feb6c4f7952eafbc8c2203ef0c657ea3580ee441.tar.gz pugl-feb6c4f7952eafbc8c2203ef0c657ea3580ee441.tar.bz2 pugl-feb6c4f7952eafbc8c2203ef0c657ea3580ee441.zip |
Add missing include guards
Diffstat (limited to 'examples')
-rw-r--r-- | examples/cube_view.h | 5 | ||||
-rw-r--r-- | examples/demo_utils.h | 6 | ||||
-rw-r--r-- | examples/rects.h | 5 | ||||
-rw-r--r-- | examples/shader_utils.h | 5 |
4 files changed, 18 insertions, 3 deletions
diff --git a/examples/cube_view.h b/examples/cube_view.h index cf930a4..87bf3b5 100644 --- a/examples/cube_view.h +++ b/examples/cube_view.h @@ -14,6 +14,9 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#ifndef EXAMPLES_CUBE_VIEW_H +#define EXAMPLES_CUBE_VIEW_H + #define GL_SILENCE_DEPRECATION 1 #include "demo_utils.h" @@ -129,3 +132,5 @@ displayCube(PuglView* const view, glDrawArrays(GL_LINES, 0, 8); glDisableClientState(GL_VERTEX_ARRAY); } + +#endif // EXAMPLES_CUBE_VIEW_H diff --git a/examples/demo_utils.h b/examples/demo_utils.h index 925753a..9057a32 100644 --- a/examples/demo_utils.h +++ b/examples/demo_utils.h @@ -14,8 +14,8 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#ifndef PUGL_DEMO_UTILS_H -#define PUGL_DEMO_UTILS_H +#ifndef EXAMPLES_DEMO_UTILS_H +#define EXAMPLES_DEMO_UTILS_H #include "pugl/pugl.h" @@ -123,4 +123,4 @@ puglPrintFps(const PuglWorld* world, } } -#endif // PUGL_DEMO_UTILS_H +#endif // EXAMPLES_DEMO_UTILS_H diff --git a/examples/rects.h b/examples/rects.h index f760226..f53698c 100644 --- a/examples/rects.h +++ b/examples/rects.h @@ -22,6 +22,9 @@ many 2D rectangles. */ +#ifndef EXAMPLES_RECTS_H +#define EXAMPLES_RECTS_H + #include <math.h> #include <stddef.h> @@ -80,3 +83,5 @@ moveRect(Rect* const rect, (cosf((float)time * rect->size[1] / 64.0f + normal) + 1.0f) / 2.0f; } + +#endif // EXAMPLES_RECTS_H diff --git a/examples/shader_utils.h b/examples/shader_utils.h index 10a7ace..217ba47 100644 --- a/examples/shader_utils.h +++ b/examples/shader_utils.h @@ -14,6 +14,9 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#ifndef EXAMPLES_SHADER_UTILS_H +#define EXAMPLES_SHADER_UTILS_H + #include "glad/glad.h" #include <stdio.h> @@ -100,3 +103,5 @@ compileProgram(const char* headerSource, return program; } + +#endif // EXAMPLES_SHADER_UTILS_H |