Style: Integrate #pragma once in builders/checks
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user