File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 11// Generated with tools/math-constant/math-constant.py
22// Do not modify!
33
4- #ifndef COMMON_CONSTANT_H_
5- #define COMMON_CONSTANT_H_
4+ #ifndef COMMON_MATH_CONSTANT_H_
5+ #define COMMON_MATH_CONSTANT_H_
66
77namespace Math {
88 // Type Name Value Operation GNU std::numbers
@@ -58,4 +58,4 @@ namespace Math {
5858 constexpr double inv_sqrt3_d = .57735026918962576451 ; // 1÷√3 inv_sqrt3
5959}
6060
61- #endif // COMMON_CONSTANT_H_
61+ #endif // COMMON_MATH_CONSTANT_H_
Original file line number Diff line number Diff line change 1212header = "// Generated with {}\n " .format (script_path )
1313header += "// Do not modify!"
1414
15+ header_id = "COMMON_MATH_CONSTANT_H_"
16+
1517constants = []
1618
1719class _phi :
@@ -287,8 +289,8 @@ def output(string=""):
287289
288290output (header )
289291output ()
290- output ("#ifndef COMMON_CONSTANT_H_" )
291- output ("#define COMMON_CONSTANT_H_" )
292+ output ("#ifndef {}" . format ( header_id ) )
293+ output ("#define {}" . format ( header_id ) )
292294output ()
293295output ("namespace Math {" )
294296
@@ -365,6 +367,6 @@ def output(string=""):
365367
366368output ("}" )
367369output ()
368- output ("#endif // COMMON_CONSTANT_H_" )
370+ output ("#endif // {}" . format ( header_id ) )
369371
370372file_handle .close ()
You can’t perform that action at this time.
0 commit comments