Skip to content

Commit 77069bf

Browse files
committed
Change header gurad to pragma once
1 parent 3a43c35 commit 77069bf

123 files changed

Lines changed: 149 additions & 499 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

demo/common/app.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef PATHFINDER_DEMO_APP_H
2-
#define PATHFINDER_DEMO_APP_H
1+
#pragma once
32

43
#include <pathfinder/prelude.h>
54

@@ -28,5 +27,3 @@ class App {
2827
std::chrono::time_point<std::chrono::steady_clock> last_time_;
2928
uint32_t frame_count_ = 0;
3029
};
31-
32-
#endif // PATHFINDER_DEMO_APP_H

pathfinder/common/color.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef PATHFINDER_COLOR_H
2-
#define PATHFINDER_COLOR_H
1+
#pragma once
32

43
#include <algorithm>
54
#include <cstdint>
@@ -144,5 +143,3 @@ inline std::ostream& operator<<(std::ostream& os, const ColorU& obj) {
144143
}
145144

146145
} // namespace Pathfinder
147-
148-
#endif // PATHFINDER_COLOR_H

pathfinder/common/f32x4.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef PATHFINDER_F32X4_H
2-
#define PATHFINDER_F32X4_H
1+
#pragma once
32

43
#include <algorithm>
54
#include <cstdint>
@@ -292,5 +291,3 @@ struct F32x4 {
292291
} // namespace Pathfinder
293292

294293
#endif // PATHFINDER_ENABLE_SIMD
295-
296-
#endif // PATHFINDER_F32X4_H

pathfinder/common/i32x4.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef PATHFINDER_I32X4_H
2-
#define PATHFINDER_I32X4_H
1+
#pragma once
32

43
#include <cstdint>
54

@@ -70,5 +69,3 @@ struct I32x4 {
7069
};
7170

7271
} // namespace Pathfinder
73-
74-
#endif // PATHFINDER_I32X4_H

pathfinder/common/io.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef PATHFINDER_IO_H
2-
#define PATHFINDER_IO_H
1+
#pragma once
32

43
#include <cassert>
54
#include <fstream>
@@ -43,5 +42,3 @@ class ImageBuffer {
4342
};
4443

4544
} // namespace Pathfinder
46-
47-
#endif // PATHFINDER_IO_H

pathfinder/common/logger.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef PATHFINDER_LOGGER_H
2-
#define PATHFINDER_LOGGER_H
1+
#pragma once
32

43
#include <iostream>
54
#include <memory>
@@ -132,5 +131,3 @@ class Logger {
132131
};
133132

134133
} // namespace Pathfinder
135-
136-
#endif // PATHFINDER_LOGGER_H

pathfinder/common/math/basic.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef PATHFINDER_BASIC_MATH_H
2-
#define PATHFINDER_BASIC_MATH_H
1+
#pragma once
32

43
#include <cassert>
54
#include <cstdint>
@@ -107,5 +106,3 @@ inline int round_up(int number, int multiple) {
107106
}
108107

109108
} // namespace Pathfinder
110-
111-
#endif // PATHFINDER_BASIC_MATH_H

pathfinder/common/math/mat2.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef PATHFINDER_MAT2_H
2-
#define PATHFINDER_MAT2_H
1+
#pragma once
32

43
#include "unit_vector.h"
54

@@ -88,5 +87,3 @@ struct Mat2 {
8887
};
8988

9089
} // namespace Pathfinder
91-
92-
#endif // PATHFINDER_MAT2_H

pathfinder/common/math/mat3.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef PATHFINDER_MAT3_H
2-
#define PATHFINDER_MAT3_H
1+
#pragma once
32

43
#include "vec2.h"
54

@@ -76,5 +75,3 @@ struct Mat3 {
7675
};
7776

7877
} // namespace Pathfinder
79-
80-
#endif // PATHFINDER_MAT3_H

pathfinder/common/math/mat4.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef PATHFINDER_MAT4_H
2-
#define PATHFINDER_MAT4_H
1+
#pragma once
32

43
#include "mat3.h"
54
#include "vec3.h"
@@ -78,5 +77,3 @@ struct Mat4 {
7877
};
7978

8079
} // namespace Pathfinder
81-
82-
#endif // PATHFINDER_MAT4_H

0 commit comments

Comments
 (0)