mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Replace include guards by #pragma once
This commit is contained in:
@@ -4,8 +4,7 @@
|
||||
//| License: GNU General Public License 2 or later (see file COPYING) |
|
||||
//+----------------------------------------------------------------------------+
|
||||
|
||||
#ifndef HEADER_SCRIPT_CONTEXT
|
||||
#define HEADER_SCRIPT_CONTEXT
|
||||
#pragma once
|
||||
|
||||
// ----------------------------------------------------------------------------- : Includes
|
||||
|
||||
@@ -138,5 +137,3 @@ class LocalScope {
|
||||
size_t scope;
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------- : EOF
|
||||
#endif
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
//| License: GNU General Public License 2 or later (see file COPYING) |
|
||||
//+----------------------------------------------------------------------------+
|
||||
|
||||
#ifndef HEADER_SCRIPT_DEPENDENCY
|
||||
#define HEADER_SCRIPT_DEPENDENCY
|
||||
#pragma once
|
||||
|
||||
// ----------------------------------------------------------------------------- : Includes
|
||||
|
||||
@@ -63,5 +62,3 @@ class Dependencies : public vector<Dependency> {
|
||||
using vector<Dependency>::push_back;
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------- : EOF
|
||||
#endif
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
//| License: GNU General Public License 2 or later (see file COPYING) |
|
||||
//+----------------------------------------------------------------------------+
|
||||
|
||||
#ifndef HEADER_SCRIPT_FUNCTIONS_FUNCTIONS
|
||||
#define HEADER_SCRIPT_FUNCTIONS_FUNCTIONS
|
||||
#pragma once
|
||||
|
||||
/** @file script/functions/functions.cpp
|
||||
*
|
||||
@@ -41,5 +40,3 @@ inline void init_script_functions(Context& ctx) {
|
||||
init_script_construction_functions(ctx);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------- : EOF
|
||||
#endif
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
//| License: GNU General Public License 2 or later (see file COPYING) |
|
||||
//+----------------------------------------------------------------------------+
|
||||
|
||||
#ifndef HEADER_SCRIPT_FUNCTIONS_UTIL
|
||||
#define HEADER_SCRIPT_FUNCTIONS_UTIL
|
||||
#pragma once
|
||||
|
||||
/** @file script/functions/util.cpp
|
||||
*
|
||||
@@ -224,5 +223,3 @@ inline Type from_script(const ScriptValueP& v, Variable var) {
|
||||
ScriptValueP ScriptRule_##name::dependencies(Context& ctx, const Dependency& dep) const
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------- : EOF
|
||||
#endif
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
//| License: GNU General Public License 2 or later (see file COPYING) |
|
||||
//+----------------------------------------------------------------------------+
|
||||
|
||||
#ifndef HEADER_SCRIPT_IMAGE
|
||||
#define HEADER_SCRIPT_IMAGE
|
||||
#pragma once
|
||||
|
||||
// ----------------------------------------------------------------------------- : Includes
|
||||
|
||||
@@ -142,5 +141,3 @@ class CachedScriptableMask {
|
||||
friend class GetDefaultMember;
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------- : EOF
|
||||
#endif
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
//| License: GNU General Public License 2 or later (see file COPYING) |
|
||||
//+----------------------------------------------------------------------------+
|
||||
|
||||
#ifndef HEADER_SCRIPT_PARSER
|
||||
#define HEADER_SCRIPT_PARSER
|
||||
#pragma once
|
||||
|
||||
// ----------------------------------------------------------------------------- : Includes
|
||||
|
||||
@@ -36,5 +35,3 @@ ScriptP parse(const String& s, Packaged* package, bool string_mode, vector<Scrip
|
||||
*/
|
||||
ScriptP parse(const String& s, Packaged* package = nullptr, bool string_mode = false);
|
||||
|
||||
// ----------------------------------------------------------------------------- : EOF
|
||||
#endif
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
//| License: GNU General Public License 2 or later (see file COPYING) |
|
||||
//+----------------------------------------------------------------------------+
|
||||
|
||||
#ifndef HEADER_SCRIPT_PROFILER
|
||||
#define HEADER_SCRIPT_PROFILER
|
||||
#pragma once
|
||||
|
||||
// ----------------------------------------------------------------------------- : Includes
|
||||
|
||||
@@ -140,5 +139,3 @@ class Profiler {
|
||||
|
||||
#endif // USE_SCRIPT_PROFILING
|
||||
|
||||
// ----------------------------------------------------------------------------- : EOF
|
||||
#endif
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
//| License: GNU General Public License 2 or later (see file COPYING) |
|
||||
//+----------------------------------------------------------------------------+
|
||||
|
||||
#ifndef HEADER_SCRIPT_SCRIPT
|
||||
#define HEADER_SCRIPT_SCRIPT
|
||||
#pragma once
|
||||
|
||||
// ----------------------------------------------------------------------------- : Includes
|
||||
|
||||
@@ -218,5 +217,3 @@ class Script : public ScriptValue {
|
||||
friend class Context;
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------- : EOF
|
||||
#endif
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
//| License: GNU General Public License 2 or later (see file COPYING) |
|
||||
//+----------------------------------------------------------------------------+
|
||||
|
||||
#ifndef HEADER_SCRIPT_SCRIPT_MANAGER
|
||||
#define HEADER_SCRIPT_SCRIPT_MANAGER
|
||||
#pragma once
|
||||
|
||||
// ----------------------------------------------------------------------------- : Includes
|
||||
|
||||
@@ -111,5 +110,3 @@ class SetScriptManager : public SetScriptContext, public ActionListener {
|
||||
void onAction(const Action&, bool undone);
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------- : EOF
|
||||
#endif
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
//| License: GNU General Public License 2 or later (see file COPYING) |
|
||||
//+----------------------------------------------------------------------------+
|
||||
|
||||
#ifndef HEADER_SCRIPT_SCRIPTABLE
|
||||
#define HEADER_SCRIPT_SCRIPTABLE
|
||||
#pragma once
|
||||
|
||||
// ----------------------------------------------------------------------------- : Includes
|
||||
|
||||
@@ -176,5 +175,3 @@ void GetDefaultMember::handle(const Scriptable<T>& s) {
|
||||
handle(s.value);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------- : EOF
|
||||
#endif
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
//| License: GNU General Public License 2 or later (see file COPYING) |
|
||||
//+----------------------------------------------------------------------------+
|
||||
|
||||
#ifndef HEADER_SCRIPT_TO_VALUE
|
||||
#define HEADER_SCRIPT_TO_VALUE
|
||||
#pragma once
|
||||
|
||||
// ----------------------------------------------------------------------------- : Includes
|
||||
|
||||
@@ -430,5 +429,3 @@ template <> inline bool from_script<bool> (const ScriptValueP& va
|
||||
template <> inline Color from_script<Color> (const ScriptValueP& value) { return *value; }
|
||||
template <> inline wxDateTime from_script<wxDateTime> (const ScriptValueP& value) { return *value; }
|
||||
|
||||
// ----------------------------------------------------------------------------- : EOF
|
||||
#endif
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
//| License: GNU General Public License 2 or later (see file COPYING) |
|
||||
//+----------------------------------------------------------------------------+
|
||||
|
||||
#ifndef HEADER_SCRIPT_VALUE
|
||||
#define HEADER_SCRIPT_VALUE
|
||||
#pragma once
|
||||
|
||||
// ----------------------------------------------------------------------------- : Includes
|
||||
|
||||
@@ -134,5 +133,3 @@ extern ScriptValueP dependency_dummy; ///< Dummy value used during dependency an
|
||||
/// compare script values for equallity
|
||||
bool equal(const ScriptValueP& a, const ScriptValueP& b);
|
||||
|
||||
// ----------------------------------------------------------------------------- : EOF
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user