From ce406bfad3b8f3683a3c5b3b0970a763f2ed3b92 Mon Sep 17 00:00:00 2001 From: DarthMooMancer <107283522+DarthMooMancer@users.noreply.github.com> Date: Thu, 13 Nov 2025 02:24:38 -0500 Subject: [PATCH] c++ --- lua/Polydev/templates.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lua/Polydev/templates.lua b/lua/Polydev/templates.lua index d01f967..a959aec 100644 --- a/lua/Polydev/templates.lua +++ b/lua/Polydev/templates.lua @@ -6,12 +6,9 @@ local function extras(guard, file_type, file_name) if not file_name then return print("Header file creation canceled") end local guard_macro = file_name:upper():gsub("[^A-Z0-9]", "_") .. guard local content = string.format([[ -#ifndef %s -#define %s - +#praga once // Add code here -#endif ]], guard_macro, guard_macro) utils.write_file({ utils.get_project_root(), "include", file_name .. file_type }, content) end