Skip to content

Commit

Permalink
src: change header guard format
Browse files Browse the repository at this point in the history
Old style was `HITTABLELISTH`, new is `HITTABLE_LIST_H`. Easier to
scan.

Resolves #220
  • Loading branch information
hollasch committed Oct 20, 2019
1 parent 2a2a290 commit 97892bd
Show file tree
Hide file tree
Showing 42 changed files with 84 additions and 84 deletions.
4 changes: 2 additions & 2 deletions src/InOneWeekend/camera.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef CAMERAH
#define CAMERAH
#ifndef CAMERA_H
#define CAMERA_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/InOneWeekend/hittable.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef HITTABLEH
#define HITTABLEH
#ifndef HITTABLE_H
#define HITTABLE_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/InOneWeekend/hittable_list.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef HITTABLELISTH
#define HITTABLELISTH
#ifndef HITTABLE_LIST_H
#define HITTABLE_LIST_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/InOneWeekend/material.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef MATERIALH
#define MATERIALH
#ifndef MATERIAL_H
#define MATERIAL_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/InOneWeekend/random.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef RANDOMH
#define RANDOMH
#ifndef RANDOM_H
#define RANDOM_H

#include <cstdlib>

Expand Down
4 changes: 2 additions & 2 deletions src/InOneWeekend/ray.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef RAYH
#define RAYH
#ifndef RAY_H
#define RAY_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/InOneWeekend/sphere.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef SPHEREH
#define SPHEREH
#ifndef SPHERE_H
#define SPHERE_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheNextWeek/aabb.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef AABBH
#define AABBH
#ifndef AABB_H
#define AABB_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheNextWeek/aarect.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef AARECTH
#define AARECTH
#ifndef AARECT_H
#define AARECT_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheNextWeek/box.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef BOXH
#define BOXH
#ifndef BOX_H
#define BOX_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheNextWeek/bvh.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef BVHH
#define BVHH
#ifndef BVH_H
#define BVH_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheNextWeek/camera.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef CAMERAH
#define CAMERAH
#ifndef CAMERA_H
#define CAMERA_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheNextWeek/constant_medium.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef CMEDH
#define CMEDH
#ifndef CONSTANT_MEDIUM_H
#define CONSTANT_MEDIUM_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheNextWeek/hittable.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef HITTABLEH
#define HITTABLEH
#ifndef HITTABLE_H
#define HITTABLE_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheNextWeek/hittable_list.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef HITTABLELISTH
#define HITTABLELISTH
#ifndef HITTABLE_LIST_H
#define HITTABLE_LIST_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheNextWeek/material.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef MATERIALH
#define MATERIALH
#ifndef MATERIAL_H
#define MATERIAL_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheNextWeek/moving_sphere.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef MOVINGSPHEREH
#define MOVINGSPHEREH
#ifndef MOVING_SPHERE_H
#define MOVING_SPHERE_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheNextWeek/perlin.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PERLINH
#define PERLINH
#ifndef PERLIN_H
#define PERLIN_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheNextWeek/random.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef RANDOMH
#define RANDOMH
#ifndef RANDOM_H
#define RANDOM_H

#include <cstdlib>

Expand Down
4 changes: 2 additions & 2 deletions src/TheNextWeek/ray.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef RAYH
#define RAYH
#ifndef RAY_H
#define RAY_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheNextWeek/sphere.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef SPHEREH
#define SPHEREH
#ifndef SPHERE_H
#define SPHERE_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheNextWeek/surface_texture.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef SURFTEXTH
#define SURFTEXTH
#ifndef SURFACE_TEXTURE_H
#define SURFACE_TEXTURE_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheNextWeek/texture.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef TEXTUREH
#define TEXTUREH
#ifndef TEXTURE_H
#define TEXTURE_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheRestOfYourLife/aabb.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef AABBH
#define AABBH
#ifndef AABB_H
#define AABB_H
//==================================================================================================
// Originally written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheRestOfYourLife/aarect.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef AARECTH
#define AARECTH
#ifndef AARECT_H
#define AARECT_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheRestOfYourLife/box.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef BOXH
#define BOXH
#ifndef BOX_H
#define BOX_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheRestOfYourLife/bvh.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef BVHH
#define BVHH
#ifndef BVH_H
#define BVH_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheRestOfYourLife/camera.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef CAMERAH
#define CAMERAH
#ifndef CAMERA_H
#define CAMERA_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheRestOfYourLife/constant_medium.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef CMEDH
#define CMEDH
#ifndef CONSTANT_MEDIUM_H
#define CONSTANT_MEDIUM_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheRestOfYourLife/hittable.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef HITTABLEH
#define HITTABLEH
#ifndef HITTABLE_H
#define HITTABLE_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheRestOfYourLife/hittable_list.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef HITTABLELISTH
#define HITTABLELISTH
#ifndef HITTABLE_LIST_H
#define HITTABLE_LIST_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheRestOfYourLife/material.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef MATERIALH
#define MATERIALH
#ifndef MATERIAL_H
#define MATERIAL_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheRestOfYourLife/moving_sphere.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef MOVINGSPHEREH
#define MOVINGSPHEREH
#ifndef MOVING_SPHERE_H
#define MOVING_SPHERE_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheRestOfYourLife/onb.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef ONBH
#define ONBH
#ifndef ONB_H
#define ONB_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheRestOfYourLife/pdf.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PDFH
#define PDFH
#ifndef PDF_H
#define PDF_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheRestOfYourLife/perlin.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PERLINH
#define PERLINH
#ifndef PERLIN_H
#define PERLIN_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheRestOfYourLife/random.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef RANDOMH
#define RANDOMH
#ifndef RANDOM_H
#define RANDOM_H

#include <cstdlib>

Expand Down
4 changes: 2 additions & 2 deletions src/TheRestOfYourLife/ray.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef RAYH
#define RAYH
#ifndef RAY_H
#define RAY_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheRestOfYourLife/sphere.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef SPHEREH
#define SPHEREH
#ifndef SPHERE_H
#define SPHERE_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheRestOfYourLife/surface_texture.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef SURFTEXTH
#define SURFTEXTH
#ifndef SURFACE_TEXTURE_H
#define SURFACE_TEXTURE_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/TheRestOfYourLife/texture.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef TEXTUREH
#define TEXTUREH
#ifndef TEXTURE_H
#define TEXTURE_H
//==================================================================================================
// Written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down
4 changes: 2 additions & 2 deletions src/common/vec3.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef VEC3H
#define VEC3H
#ifndef VEC3_H
#define VEC3_H
//==================================================================================================
// Originally written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
Expand Down

0 comments on commit 97892bd

Please sign in to comment.