File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
// Generated with tools/math-constant/math-constant.py
2
2
// Do not modify!
3
3
4
- #ifndef COMMON_CONSTANT_H_
5
- #define COMMON_CONSTANT_H_
4
+ #ifndef COMMON_MATH_CONSTANT_H_
5
+ #define COMMON_MATH_CONSTANT_H_
6
6
7
7
namespace Math {
8
8
// Type Name Value Operation GNU std::numbers
@@ -58,4 +58,4 @@ namespace Math {
58
58
constexpr double inv_sqrt3_d = .57735026918962576451 ; // 1÷√3 inv_sqrt3
59
59
}
60
60
61
- #endif // COMMON_CONSTANT_H_
61
+ #endif // COMMON_MATH_CONSTANT_H_
Original file line number Diff line number Diff line change 12
12
header = "// Generated with {}\n " .format (script_path )
13
13
header += "// Do not modify!"
14
14
15
+ header_id = "COMMON_MATH_CONSTANT_H_"
16
+
15
17
constants = []
16
18
17
19
class _phi :
@@ -287,8 +289,8 @@ def output(string=""):
287
289
288
290
output (header )
289
291
output ()
290
- output ("#ifndef COMMON_CONSTANT_H_" )
291
- output ("#define COMMON_CONSTANT_H_" )
292
+ output ("#ifndef {}" . format ( header_id ) )
293
+ output ("#define {}" . format ( header_id ) )
292
294
output ()
293
295
output ("namespace Math {" )
294
296
@@ -365,6 +367,6 @@ def output(string=""):
365
367
366
368
output ("}" )
367
369
output ()
368
- output ("#endif // COMMON_CONSTANT_H_" )
370
+ output ("#endif // {}" . format ( header_id ) )
369
371
370
372
file_handle .close ()
You can’t perform that action at this time.
0 commit comments