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

@ -207,8 +207,7 @@ def run(target, source, env):
max_versions = 12
txt = """/* THIS FILE IS GENERATED DO NOT EDIT */
#ifndef GDVIRTUAL_GEN_H
#define GDVIRTUAL_GEN_H
#pragma once
#include "core/object/script_instance.h"
@ -257,7 +256,5 @@ def run(target, source, env):
txt += generate_version(i, True, False, False, True)
txt += generate_version(i, True, True, False, True)
txt += "#endif // GDVIRTUAL_GEN_H\n"
with open(str(target[0]), "w", encoding="utf-8", newline="\n") as f:
f.write(txt)