From 4f8941c1a5f1ef6caa410feeb52e343db22763ce Mon Sep 17 00:00:00 2001 From: dundargoc Date: Fri, 10 Nov 2023 12:23:42 +0100 Subject: refactor: replace manual header guards with #pragma once It is less error-prone than manually defining header guards. Pretty much all compilers support it even if it's not part of the C standard. --- src/nvim/lua/secure.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/nvim/lua/secure.h') diff --git a/src/nvim/lua/secure.h b/src/nvim/lua/secure.h index 87c468538e..b363a243a5 100644 --- a/src/nvim/lua/secure.h +++ b/src/nvim/lua/secure.h @@ -1,5 +1,4 @@ -#ifndef NVIM_LUA_SECURE_H -#define NVIM_LUA_SECURE_H +#pragma once #include @@ -8,5 +7,3 @@ #ifdef INCLUDE_GENERATED_DECLARATIONS # include "lua/secure.h.generated.h" #endif - -#endif // NVIM_LUA_SECURE_H -- cgit