1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Style: Integrate #pragma once in builders/checks

This commit is contained in:
Thaddeus Crews
2025-02-01 10:11:55 -06:00
parent 7459a0361d
commit 96fdaa616b
17 changed files with 44 additions and 197 deletions

View File

@@ -106,8 +106,7 @@ def generate_char_range_inc() -> None:
source += f"""
// This file was generated using the `misc/scripts/char_range_fetch.py` script.
#ifndef CHAR_RANGE_INC
#define CHAR_RANGE_INC
#pragma once
#include "core/typedefs.h"
@@ -125,8 +124,6 @@ struct CharRange {{
source += make_array("lowercase_letter", lowercase_letter)
source += make_array("unicode_letter", unicode_letter)
source += "#endif // CHAR_RANGE_INC\n"
char_range_path: str = os.path.join(os.path.dirname(__file__), "../../core/string/char_range.inc")
with open(char_range_path, "w", newline="\n") as f:
f.write(source)