From 4b81a0768aaf832b3ac6f69dbf158b5b9ec3d759 Mon Sep 17 00:00:00 2001 From: jyelon Date: Wed, 25 Feb 2026 01:58:19 -0500 Subject: [PATCH] Convert to pragma once --- luprex/cpp/core/animqueue.hpp | 4 +--- luprex/cpp/core/debugcollector.hpp | 4 +--- luprex/cpp/core/drivenengine.hpp | 6 +----- luprex/cpp/core/eng-malloc.hpp | 5 +---- luprex/cpp/core/enginewrapper.hpp | 5 +---- luprex/cpp/core/http.hpp | 5 +---- luprex/cpp/core/idalloc.hpp | 4 +--- luprex/cpp/core/invocation.hpp | 6 +----- luprex/cpp/core/json.hpp | 4 +--- luprex/cpp/core/keywords.hpp | 5 +---- luprex/cpp/core/lpxclient.hpp | 5 +---- luprex/cpp/core/lpxserver.hpp | 5 +---- luprex/cpp/core/luasnap.hpp | 6 +----- luprex/cpp/core/luastack.hpp | 5 +---- luprex/cpp/core/planemap.hpp | 6 +----- luprex/cpp/core/pprint.hpp | 5 +---- luprex/cpp/core/printbuffer.hpp | 6 +----- luprex/cpp/core/sched.hpp | 4 +--- luprex/cpp/core/serializelua.hpp | 5 +---- luprex/cpp/core/source.hpp | 4 +--- luprex/cpp/core/spookyv2.hpp | 5 +---- luprex/cpp/core/streambuffer.hpp | 5 +---- luprex/cpp/core/table.hpp | 6 +----- luprex/cpp/core/traceback.hpp | 5 +---- luprex/cpp/core/util.hpp | 5 +---- luprex/cpp/core/world.hpp | 6 +----- luprex/cpp/wrap/wrap-bytell-hash-map.hpp | 5 +---- luprex/cpp/wrap/wrap-deque.hpp | 5 +---- luprex/cpp/wrap/wrap-map.hpp | 5 +---- luprex/cpp/wrap/wrap-set.hpp | 5 +---- luprex/cpp/wrap/wrap-sstream.hpp | 5 +---- luprex/cpp/wrap/wrap-string.hpp | 5 +---- luprex/cpp/wrap/wrap-unordered-map.hpp | 5 +---- luprex/cpp/wrap/wrap-unordered-set.hpp | 5 +---- luprex/cpp/wrap/wrap-vector.hpp | 5 +---- 35 files changed, 35 insertions(+), 141 deletions(-) diff --git a/luprex/cpp/core/animqueue.hpp b/luprex/cpp/core/animqueue.hpp index e6c14dc6..e841e71d 100644 --- a/luprex/cpp/core/animqueue.hpp +++ b/luprex/cpp/core/animqueue.hpp @@ -107,8 +107,7 @@ // /////////////////////////////////////////////////////////////////// -#ifndef ANIMQUEUE_HPP -#define ANIMQUEUE_HPP +#pragma once #include "wrap-set.hpp" #include "wrap-string.hpp" @@ -431,5 +430,4 @@ private: static util::SharedStdString blankqueue_; }; -#endif // ANIMQUEUE_HPP diff --git a/luprex/cpp/core/debugcollector.hpp b/luprex/cpp/core/debugcollector.hpp index 947f90d6..44c8c65e 100644 --- a/luprex/cpp/core/debugcollector.hpp +++ b/luprex/cpp/core/debugcollector.hpp @@ -1,5 +1,4 @@ -#ifndef DEBUGCOLLECTOR_HPP -#define DEBUGCOLLECTOR_HPP +#pragma once #include "wrap-vector.hpp" #include "wrap-string.hpp" @@ -47,5 +46,4 @@ public: #define DebugHeader(dbc) if (((dbc)!=nullptr) && (dbc)->do_header()) ((dbc)->oss_) #define DebugLine(dbc) if (((dbc)!=nullptr) && (dbc)->do_line()) ((dbc)->oss_) -#endif // DEBUGCOLLECTOR_HPP diff --git a/luprex/cpp/core/drivenengine.hpp b/luprex/cpp/core/drivenengine.hpp index 153aae84..99513424 100644 --- a/luprex/cpp/core/drivenengine.hpp +++ b/luprex/cpp/core/drivenengine.hpp @@ -39,8 +39,7 @@ // ////////////////////////////////////////////////////////////// -#ifndef DRIVENENGINE_HPP -#define DRIVENENGINE_HPP +#pragma once #include "wrap-string.hpp" #include "wrap-vector.hpp" @@ -325,6 +324,3 @@ struct DrivenEngineInitializerReg { static DrivenEngineInitializer func; DrivenEngineInitializerReg(DrivenEngineInitializer f); }; - - -#endif // DRIVENENGINE_HPP diff --git a/luprex/cpp/core/eng-malloc.hpp b/luprex/cpp/core/eng-malloc.hpp index 7b285fea..3c25ab22 100644 --- a/luprex/cpp/core/eng-malloc.hpp +++ b/luprex/cpp/core/eng-malloc.hpp @@ -59,8 +59,7 @@ // data goes into the malloc heap. By the way, eng::ostringstream uses // the eng::malloc heap. // -#ifndef ENG_MALLOC_HPP -#define ENG_MALLOC_HPP +#pragma once #include #include @@ -207,5 +206,3 @@ namespace eng { } } // namespace eng -#endif // ENG_MALLOC_HPP - diff --git a/luprex/cpp/core/enginewrapper.hpp b/luprex/cpp/core/enginewrapper.hpp index eec6f2cf..0c2391cc 100644 --- a/luprex/cpp/core/enginewrapper.hpp +++ b/luprex/cpp/core/enginewrapper.hpp @@ -12,8 +12,7 @@ // //////////////////////////////////////////////////////////////////////////////// -#ifndef ENGINEWRAPPER_H -#define ENGINEWRAPPER_H +#pragma once #include #include @@ -305,5 +304,3 @@ struct EngineWrapper { // void (*release)(EngineWrapper *w); }; - -#endif // ENGINEWRAPPER_HPP \ No newline at end of file diff --git a/luprex/cpp/core/http.hpp b/luprex/cpp/core/http.hpp index f5681554..f87ad711 100644 --- a/luprex/cpp/core/http.hpp +++ b/luprex/cpp/core/http.hpp @@ -10,8 +10,7 @@ // ///////////////////////////////////////////////////////// -#ifndef HTTP_HPP -#define HTTP_HPP +#pragma once #include "eng-malloc.hpp" #include "wrap-string.hpp" @@ -454,5 +453,3 @@ public: using HttpChannelMap = eng::map; using HttpChannelVec = eng::vector; - -#endif // HTTP_HPP diff --git a/luprex/cpp/core/idalloc.hpp b/luprex/cpp/core/idalloc.hpp index 6591037e..9c40058d 100644 --- a/luprex/cpp/core/idalloc.hpp +++ b/luprex/cpp/core/idalloc.hpp @@ -90,8 +90,7 @@ // /////////////////////////////////////////////////////////////////// -#ifndef IDALLOC_HPP -#define IDALLOC_HPP +#pragma once #include "wrap-map.hpp" #include "wrap-sstream.hpp" @@ -219,5 +218,4 @@ private: friend int lfn_unittests_idalloc(lua_State *L); }; -#endif // IDALLOC_HPP diff --git a/luprex/cpp/core/invocation.hpp b/luprex/cpp/core/invocation.hpp index 68dadd73..5eafcb45 100644 --- a/luprex/cpp/core/invocation.hpp +++ b/luprex/cpp/core/invocation.hpp @@ -35,8 +35,7 @@ // ////////////////////////////////////////////////////////////////////////// -#ifndef INVOCATION_HPP -#define INVOCATION_HPP +#pragma once #include "wrap-string.hpp" #include "wrap-map.hpp" @@ -72,6 +71,3 @@ using UniqueInvocation = std::unique_ptr; class InvocationQueue : public eng::deque { }; - - -#endif // INVOCATION_HPP diff --git a/luprex/cpp/core/json.hpp b/luprex/cpp/core/json.hpp index 35e06cd0..40bd1152 100644 --- a/luprex/cpp/core/json.hpp +++ b/luprex/cpp/core/json.hpp @@ -2,8 +2,7 @@ // // See the doc(http.jsonencode) to read about limitations of the encoder. // -#ifndef JSON_HPP -#define JSON_HPP +#pragma once #include "luastack.hpp" #include "wrap-string.hpp" @@ -30,5 +29,4 @@ namespace json { bool decode(LuaCoreStack &LS, LuaSlot out, std::string_view in); } -#endif // JSON_HPP diff --git a/luprex/cpp/core/keywords.hpp b/luprex/cpp/core/keywords.hpp index 3ed7d0b5..ef21579c 100644 --- a/luprex/cpp/core/keywords.hpp +++ b/luprex/cpp/core/keywords.hpp @@ -40,8 +40,7 @@ // //////////////////////////////////////////////////////////////////// -#ifndef KEYWORDS_HPP -#define KEYWORDS_HPP +#pragma once #include "luastack.hpp" @@ -88,5 +87,3 @@ public: // Fetch the state pointer. lua_State *state() const { return LS.state(); } }; - -#endif // KEYWORDS_HPP diff --git a/luprex/cpp/core/lpxclient.hpp b/luprex/cpp/core/lpxclient.hpp index a1a2a1a5..6f70f09b 100644 --- a/luprex/cpp/core/lpxclient.hpp +++ b/luprex/cpp/core/lpxclient.hpp @@ -1,4 +1 @@ -#ifndef LPXCLIENT_HPP -#define LPXCLIENT_HPP - -#endif // LPXCLIENT_HPP +#pragma once diff --git a/luprex/cpp/core/lpxserver.hpp b/luprex/cpp/core/lpxserver.hpp index e2fbfa32..3f59c932 100644 --- a/luprex/cpp/core/lpxserver.hpp +++ b/luprex/cpp/core/lpxserver.hpp @@ -1,5 +1,2 @@ -#ifndef LPXSERVER_HPP -#define LPXSERVER_HPP - -#endif // LPXSERVER_HPP +#pragma once diff --git a/luprex/cpp/core/luasnap.hpp b/luprex/cpp/core/luasnap.hpp index 0f152ef3..b8ea3e08 100644 --- a/luprex/cpp/core/luasnap.hpp +++ b/luprex/cpp/core/luasnap.hpp @@ -11,8 +11,7 @@ // ///////////////////////////////////////////////////////////////////////////// -#ifndef LUASNAP_HPP -#define LUASNAP_HPP +#pragma once #include "streambuffer.hpp" #include "luastack.hpp" @@ -37,6 +36,3 @@ public: // void deserialize(StreamBuffer *sb); }; - - -#endif // LUASNAP_HPP diff --git a/luprex/cpp/core/luastack.hpp b/luprex/cpp/core/luastack.hpp index 7a808b31..d7a6007e 100644 --- a/luprex/cpp/core/luastack.hpp +++ b/luprex/cpp/core/luastack.hpp @@ -5,8 +5,7 @@ // ///////////////////////////////////////////////////////// -#ifndef LUASTACK_HPP -#define LUASTACK_HPP +#pragma once #include "util.hpp" #include "wrap-string.hpp" @@ -946,5 +945,3 @@ public: #define LuaStringify(x) #x #define LuaAssert(L, x) if (!(x)) { luaL_error((L), "Assert failed: %s (file %s line %d)", LuaStringify(x), __FILE__, __LINE__); } #define LuaAssertStrEq(L, x, y) { eng::string _s1_(x); eng::string _s2_(y); if (_s1_ != _s2_) luaL_error((L), "Assert failed: value=%s (file %s line %d)", _s1_.c_str(), __FILE__, __LINE__); } - -#endif // LUASTACK_HPP diff --git a/luprex/cpp/core/planemap.hpp b/luprex/cpp/core/planemap.hpp index a61b4af3..dfb11b19 100644 --- a/luprex/cpp/core/planemap.hpp +++ b/luprex/cpp/core/planemap.hpp @@ -70,8 +70,7 @@ // ////////////////////////////////////////////////////////////// -#ifndef PLANEMAP_HPP -#define PLANEMAP_HPP +#pragma once #include "wrap-vector.hpp" #include "wrap-map.hpp" @@ -256,6 +255,3 @@ private: }; -#endif // PLANEMAP_HPP - - diff --git a/luprex/cpp/core/pprint.hpp b/luprex/cpp/core/pprint.hpp index 21eee277..7ea95cb0 100644 --- a/luprex/cpp/core/pprint.hpp +++ b/luprex/cpp/core/pprint.hpp @@ -16,8 +16,7 @@ // ////////////////////////////////////////////////////////////////////////////////// -#ifndef PPRINT_HPP -#define PPRINT_HPP +#pragma once #include "luastack.hpp" #include @@ -89,5 +88,3 @@ public: friend class PrintMachine; }; - -#endif // PPRINT_HPP \ No newline at end of file diff --git a/luprex/cpp/core/printbuffer.hpp b/luprex/cpp/core/printbuffer.hpp index cf2a3746..60dfd82b 100644 --- a/luprex/cpp/core/printbuffer.hpp +++ b/luprex/cpp/core/printbuffer.hpp @@ -74,8 +74,7 @@ //////////////////////////////////////////////////////////////////////////////// -#ifndef PRINTBUFFER_HPP -#define PRINTBUFFER_HPP +#pragma once #include "wrap-deque.hpp" #include "wrap-string.hpp" @@ -183,6 +182,3 @@ public: Invocation invocation(int64_t actor_id); }; - -#endif // PRINTBUFFER_HPP - diff --git a/luprex/cpp/core/sched.hpp b/luprex/cpp/core/sched.hpp index 9af31c28..3bc125d0 100644 --- a/luprex/cpp/core/sched.hpp +++ b/luprex/cpp/core/sched.hpp @@ -1,5 +1,4 @@ -#ifndef SCHED_HPP -#define SCHED_HPP +#pragma once #include "wrap-set.hpp" @@ -44,5 +43,4 @@ public: void deserialize(StreamBuffer *sb); }; -#endif // SCHED_HPP diff --git a/luprex/cpp/core/serializelua.hpp b/luprex/cpp/core/serializelua.hpp index c3b8f34f..290154fe 100644 --- a/luprex/cpp/core/serializelua.hpp +++ b/luprex/cpp/core/serializelua.hpp @@ -11,8 +11,7 @@ //////////////////////////////////////////////////////////// -#ifndef SERIALIZELUA_HPP -#define SERIALIZELUA_HPP +#pragma once #include "luastack.hpp" #include "streambuffer.hpp" @@ -36,5 +35,3 @@ eng::string serialize_lua(LuaCoreStack &LS0, LuaSlot val, StreamBuffer *sb); // streambuffer is likely only partially consumed. // eng::string deserialize_lua(LuaCoreStack &LS0, LuaSlot val, StreamBuffer *sb); - -#endif // SERIALIZELUA_HPP diff --git a/luprex/cpp/core/source.hpp b/luprex/cpp/core/source.hpp index fed584f1..05a2975b 100644 --- a/luprex/cpp/core/source.hpp +++ b/luprex/cpp/core/source.hpp @@ -115,8 +115,7 @@ // //////////////////////////////////////////////////////////// -#ifndef SOURCE_HPP -#define SOURCE_HPP +#pragma once #include "wrap-string.hpp" @@ -213,6 +212,5 @@ public: static void deserialize_source(util::LuaSourceVec *sv, StreamBuffer *sb); }; -#endif // SOURCE_HPP diff --git a/luprex/cpp/core/spookyv2.hpp b/luprex/cpp/core/spookyv2.hpp index 2b6d7997..3f39f914 100644 --- a/luprex/cpp/core/spookyv2.hpp +++ b/luprex/cpp/core/spookyv2.hpp @@ -26,8 +26,7 @@ // slower than MD5. // -#ifndef SPOOKYV2_HPP -#define SPOOKYV2_HPP +#pragma once #include #include @@ -79,5 +78,3 @@ public: return hash1; } }; - -#endif // SPOOKYV2_HPP diff --git a/luprex/cpp/core/streambuffer.hpp b/luprex/cpp/core/streambuffer.hpp index 61000b2f..1b7339e4 100644 --- a/luprex/cpp/core/streambuffer.hpp +++ b/luprex/cpp/core/streambuffer.hpp @@ -199,8 +199,7 @@ ////////////////////////////////////////////////////////////// -#ifndef STREAMBUFFER_HPP -#define STREAMBUFFER_HPP +#pragma once #include "wrap-string.hpp" #include "wrap-sstream.hpp" @@ -279,5 +278,3 @@ public: // Use a streambuffer as a lua_writer. int lua_writer_into_streambuffer(lua_State *L, const void* bytes, size_t sz, void* sb); - -#endif // STREAMBUFFER_HPP diff --git a/luprex/cpp/core/table.hpp b/luprex/cpp/core/table.hpp index 3198dbd3..6a2fed88 100644 --- a/luprex/cpp/core/table.hpp +++ b/luprex/cpp/core/table.hpp @@ -7,8 +7,7 @@ //////////////////////////////////////////////////////////// -#ifndef TABLE_HPP -#define TABLE_HPP +#pragma once #include "luastack.hpp" @@ -24,6 +23,3 @@ bool table_equal(LuaCoreStack &LS0, LuaSlot tab1, LuaSlot tab2); // the pairs. Return true if all keys were sortable. // bool table_getpairs(LuaCoreStack &LS0, LuaSlot tab, LuaSlot pairs, bool sort); - - -#endif // TABLE_HPP diff --git a/luprex/cpp/core/traceback.hpp b/luprex/cpp/core/traceback.hpp index 978b9a5b..3d6c9d2b 100644 --- a/luprex/cpp/core/traceback.hpp +++ b/luprex/cpp/core/traceback.hpp @@ -8,8 +8,7 @@ ///////////////////////////////////////////////////////////////// -#ifndef TRACEBACK_HPP -#define TRACEBACK_HPP +#pragma once #include "luastack.hpp" @@ -29,5 +28,3 @@ int traceback_coroutine(lua_State *L); // not allowed, and does an assert-fail in that case. // eng::string traceback_pcall(lua_State *L, int narg, int nret); - -#endif // TRACEBACK_HPP diff --git a/luprex/cpp/core/util.hpp b/luprex/cpp/core/util.hpp index f68202be..983be476 100644 --- a/luprex/cpp/core/util.hpp +++ b/luprex/cpp/core/util.hpp @@ -13,8 +13,7 @@ // /////////////////////////////////////////////////////////////////////// -#ifndef UTIL_HPP -#define UTIL_HPP +#pragma once #include "wrap-string.hpp" #include "wrap-set.hpp" @@ -556,5 +555,3 @@ inline std::ostream &operator<<(std::ostream &oss, const util::DXYZ &xyz) { oss << xyz.x << "," << xyz.y << "," << xyz.z; return oss; } - -#endif // UTIL_HPP diff --git a/luprex/cpp/core/world.hpp b/luprex/cpp/core/world.hpp index 791c7a12..a64c24ef 100644 --- a/luprex/cpp/core/world.hpp +++ b/luprex/cpp/core/world.hpp @@ -1,6 +1,5 @@ -#ifndef WORLD_HPP -#define WORLD_HPP +#pragma once #include "wrap-set.hpp" #include "wrap-unordered-map.hpp" @@ -715,6 +714,3 @@ private: }; using UniqueWorld = std::unique_ptr; - - -#endif // WORLD_HPP diff --git a/luprex/cpp/wrap/wrap-bytell-hash-map.hpp b/luprex/cpp/wrap/wrap-bytell-hash-map.hpp index 23bf3ed4..12e47a9e 100644 --- a/luprex/cpp/wrap/wrap-bytell-hash-map.hpp +++ b/luprex/cpp/wrap/wrap-bytell-hash-map.hpp @@ -1,5 +1,4 @@ -#ifndef WRAP_BYTELL_HASH_MAP_HPP -#define WRAP_BYTELL_HASH_MAP_HPP +#pragma once #include "eng-malloc.hpp" #include "bytell-hash-map.hpp" @@ -10,5 +9,3 @@ class bytell_hash_map : public ska::bytell_hash_map>>::bytell_hash_map; }; } // namespace eng - -#endif // WRAP_BYTELL_HASH_MAP_HPP diff --git a/luprex/cpp/wrap/wrap-deque.hpp b/luprex/cpp/wrap/wrap-deque.hpp index 6648864e..470e51d0 100644 --- a/luprex/cpp/wrap/wrap-deque.hpp +++ b/luprex/cpp/wrap/wrap-deque.hpp @@ -1,5 +1,4 @@ -#ifndef WRAP_DEQUE_HPP -#define WRAP_DEQUE_HPP +#pragma once #include "eng-malloc.hpp" #include @@ -10,5 +9,3 @@ class deque : public std::deque>, public eng::opnew { using std::deque>::deque; }; } // namespace eng - -#endif // WRAP_DEQUE_HPP diff --git a/luprex/cpp/wrap/wrap-map.hpp b/luprex/cpp/wrap/wrap-map.hpp index 0077eca5..30879c22 100644 --- a/luprex/cpp/wrap/wrap-map.hpp +++ b/luprex/cpp/wrap/wrap-map.hpp @@ -1,5 +1,4 @@ -#ifndef WRAP_MAP_HPP -#define WRAP_MAP_HPP +#pragma once #include "eng-malloc.hpp" #include @@ -10,5 +9,3 @@ class map : public std::map>>, eng using std::map>>::map; }; } // namespace eng - -#endif // WRAP_MAP_HPP diff --git a/luprex/cpp/wrap/wrap-set.hpp b/luprex/cpp/wrap/wrap-set.hpp index dba5a388..759a8b85 100644 --- a/luprex/cpp/wrap/wrap-set.hpp +++ b/luprex/cpp/wrap/wrap-set.hpp @@ -1,5 +1,4 @@ -#ifndef WRAP_SET_HPP -#define WRAP_SET_HPP +#pragma once #include "eng-malloc.hpp" #include @@ -10,5 +9,3 @@ class set : public std::set>, public eng::opnew { using std::set>::set; }; } // namespace eng - -#endif // WRAP_SET_HPP diff --git a/luprex/cpp/wrap/wrap-sstream.hpp b/luprex/cpp/wrap/wrap-sstream.hpp index e20fd6ae..134c901d 100644 --- a/luprex/cpp/wrap/wrap-sstream.hpp +++ b/luprex/cpp/wrap/wrap-sstream.hpp @@ -1,5 +1,4 @@ -#ifndef WRAP_SSTREAM_HPP -#define WRAP_SSTREAM_HPP +#pragma once #include "eng-malloc.hpp" #include "wrap-string.hpp" @@ -16,5 +15,3 @@ class basic_ostringstream : public std::basic_ostringstream; //using stringbuf = basic_stringbuf; } // namespace eng - -#endif // WRAP_SSTREAM_HPP diff --git a/luprex/cpp/wrap/wrap-string.hpp b/luprex/cpp/wrap/wrap-string.hpp index f6f6f237..cf6eeb40 100644 --- a/luprex/cpp/wrap/wrap-string.hpp +++ b/luprex/cpp/wrap/wrap-string.hpp @@ -1,5 +1,4 @@ -#ifndef WRAP_STRING_HPP -#define WRAP_STRING_HPP +#pragma once #include "eng-malloc.hpp" #include @@ -11,5 +10,3 @@ using string = basic_string; using u32string = basic_string; using u16string = basic_string; } // namespace eng - -#endif // WRAP_STRING_HPP diff --git a/luprex/cpp/wrap/wrap-unordered-map.hpp b/luprex/cpp/wrap/wrap-unordered-map.hpp index 5b187f41..a52c8ba5 100644 --- a/luprex/cpp/wrap/wrap-unordered-map.hpp +++ b/luprex/cpp/wrap/wrap-unordered-map.hpp @@ -1,5 +1,4 @@ -#ifndef WRAP_UNORDERED_MAP_HPP -#define WRAP_UNORDERED_MAP_HPP +#pragma once #include "eng-malloc.hpp" #include @@ -10,5 +9,3 @@ class unordered_map : public std::unordered_map>>::unordered_map; }; } // namespace eng - -#endif // WRAP_UNORDERED_MAP_HPP diff --git a/luprex/cpp/wrap/wrap-unordered-set.hpp b/luprex/cpp/wrap/wrap-unordered-set.hpp index 08640258..c9995237 100644 --- a/luprex/cpp/wrap/wrap-unordered-set.hpp +++ b/luprex/cpp/wrap/wrap-unordered-set.hpp @@ -1,5 +1,4 @@ -#ifndef WRAP_UNORDERED_SET_HPP -#define WRAP_UNORDERED_SET_HPP +#pragma once #include "eng-malloc.hpp" #include @@ -10,5 +9,3 @@ class unordered_set : public std::unordered_set>, pub using std::unordered_set>::unordered_set; }; } // namespace eng - -#endif // WRAP_UNORDERED_SET_HPP diff --git a/luprex/cpp/wrap/wrap-vector.hpp b/luprex/cpp/wrap/wrap-vector.hpp index 30a273d0..0a1fac72 100644 --- a/luprex/cpp/wrap/wrap-vector.hpp +++ b/luprex/cpp/wrap/wrap-vector.hpp @@ -1,5 +1,4 @@ -#ifndef WRAP_VECTOR_HPP -#define WRAP_VECTOR_HPP +#pragma once #include "eng-malloc.hpp" #include @@ -10,5 +9,3 @@ class vector : public std::vector>, public eng::opnew { using std::vector>::vector; }; } // namespace eng - -#endif // WRAP_VECTOR_HPP