replace include guards with pragma once

This commit is contained in:
MihailRis
2024-08-10 01:57:59 +03:00
parent f43cc93cd2
commit de5c75d782
164 changed files with 166 additions and 656 deletions
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef LOGIC_SCRIPTING_API_LUA_HPP_
#define LOGIC_SCRIPTING_API_LUA_HPP_
#pragma once
#include <exception>
#include <string>
@@ -74,5 +73,3 @@ namespace lua {
}
void initialize_libs_extends(lua::State* L);
#endif // LOGIC_SCRIPTING_API_LUA_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef LOGIC_SCRIPTING_LUA_LIBENTITY_HPP_
#define LOGIC_SCRIPTING_LUA_LIBENTITY_HPP_
#pragma once
#include <optional>
@@ -18,5 +17,3 @@ inline std::optional<Entity> get_entity(lua::State* L, int idx) {
auto level = scripting::controller->getLevel();
return level->entities->get(id);
}
#endif // LOGIC_SCRIPTING_LUA_LIBENTITY_HPP_
+2 -5
View File
@@ -1,5 +1,4 @@
#ifndef LOGIC_SCRIPTING_LUA_HPP_
#define LOGIC_SCRIPTING_LUA_HPP_
#pragma once
#include "delegates.hpp"
#include "logic/scripting/scripting.hpp"
@@ -9,7 +8,7 @@
#include <luajit-2.1/lua.hpp>
#else
#include <lua.hpp"
#include <lua.hpp>
#endif
#include <glm/glm.hpp>
#include <stdexcept>
@@ -31,5 +30,3 @@ namespace lua {
using Number = lua_Number;
using Integer = lua_Integer;
}
#endif // LOGIC_SCRIPTING_LUA_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef LOGIC_SCRIPTING_LUA_LUA_CUSTOM_TYPES_HPP_
#define LOGIC_SCRIPTING_LUA_LUA_CUSTOM_TYPES_HPP_
#pragma once
#include <string>
#include <vector>
@@ -31,5 +30,3 @@ namespace lua {
inline static std::string TYPENAME = "bytearray";
};
}
#endif // LOGIC_SCRIPTING_LUA_LUA_CUSTOM_TYPES_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef LOGIC_SCRIPTING_LUA_STATE_HPP_
#define LOGIC_SCRIPTING_LUA_STATE_HPP_
#pragma once
#include <stdexcept>
#include <string>
@@ -20,5 +19,3 @@ namespace lua {
);
lua::State* get_main_thread();
}
#endif // LOGIC_SCRIPTING_LUA_STATE_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef LOGIC_SCRIPTING_LUA_UTIL_HPP_
#define LOGIC_SCRIPTING_LUA_UTIL_HPP_
#pragma once
#include <typeindex>
#include <typeinfo>
@@ -639,5 +638,3 @@ namespace lua {
setglobal(L, name);
}
}
#endif // LOGIC_SCRIPTING_LUA_UTIL_HPP_