Convert to pragma once

This commit is contained in:
Jack Andersen 2018-10-06 17:38:44 -10:00
parent 0c3dece31d
commit d1f0450401
37 changed files with 37 additions and 107 deletions

View File

@ -1,5 +1,4 @@
#ifndef CTOOL_BASE #pragma once
#define CTOOL_BASE
#include <string> #include <string>
#include <vector> #include <vector>
@ -274,4 +273,3 @@ static hecl::SystemString MakePathArgAbsolute(const hecl::SystemString& arg,
#endif #endif
} }
#endif // CTOOL_BASE

View File

@ -1,5 +1,4 @@
#ifndef CTOOL_COOK #pragma once
#define CTOOL_COOK
#include "ToolBase.hpp" #include "ToolBase.hpp"
#include <cstdio> #include <cstdio>
@ -180,4 +179,3 @@ public:
} }
}; };
#endif // CTOOL_COOK

View File

@ -1,5 +1,4 @@
#ifndef CTOOL_EXTRACT #pragma once
#define CTOOL_EXTRACT
#include "ToolBase.hpp" #include "ToolBase.hpp"
#include <cstdio> #include <cstdio>
@ -184,4 +183,3 @@ public:
} }
}; };
#endif // CTOOL_EXTRACT

View File

@ -1,5 +1,4 @@
#ifndef CTOOL_HELP #pragma once
#define CTOOL_HELP
#include "ToolBase.hpp" #include "ToolBase.hpp"
#include <cstdio> #include <cstdio>
@ -91,4 +90,3 @@ public:
} }
}; };
#endif // CTOOL_HELP

View File

@ -1,5 +1,4 @@
#ifndef CTOOL_IMAGE #pragma once
#define CTOOL_IMAGE
#if HECL_HAS_NOD #if HECL_HAS_NOD
@ -156,4 +155,3 @@ public:
#endif #endif
#endif // CTOOL_IMAGE

View File

@ -1,5 +1,4 @@
#ifndef CTOOL_INIT #pragma once
#define CTOOL_INIT
#include "ToolBase.hpp" #include "ToolBase.hpp"
#include <cstdio> #include <cstdio>
@ -85,4 +84,3 @@ public:
hecl::SystemString toolName() const {return _S("init");} hecl::SystemString toolName() const {return _S("init");}
}; };
#endif // CTOOL_INIT

View File

@ -1,5 +1,4 @@
#ifndef CTOOL_PACKAGE #pragma once
#define CTOOL_PACKAGE
#include <vector> #include <vector>
#include <string> #include <string>
@ -215,4 +214,3 @@ public:
} }
}; };
#endif // CTOOL_PACKAGE

View File

@ -1,5 +1,4 @@
#ifndef CTOOL_SPEC #pragma once
#define CTOOL_SPEC
#include "ToolBase.hpp" #include "ToolBase.hpp"
#include <cstdio> #include <cstdio>
@ -155,4 +154,3 @@ public:
} }
}; };
#endif // CTOOL_SPEC

2
hecl/extern/athena vendored

@ -1 +1 @@
Subproject commit 5f2611702d4989097a850d8a5705184392d8510c Subproject commit 0cdfd0ad9f14599a53bb3577ef6481807191616d

2
hecl/extern/boo vendored

@ -1 +1 @@
Subproject commit 528b350626332d2c584d665b221ea437f9b0c0f6 Subproject commit bba2486c15498a307eb1c009edba09ec10a10294

View File

@ -1,5 +1,4 @@
#ifndef HECLBACKEND_HPP #pragma once
#define HECLBACKEND_HPP
#include "hecl/Frontend.hpp" #include "hecl/Frontend.hpp"
@ -238,4 +237,3 @@ template <> struct hash<hecl::Backend::ShaderTag>
}; };
} }
#endif // HECLBACKEND_HPP

View File

@ -1,5 +1,4 @@
#ifndef HECLBACKEND_GLSL_HPP #pragma once
#define HECLBACKEND_GLSL_HPP
#include "ProgrammableCommon.hpp" #include "ProgrammableCommon.hpp"
@ -46,4 +45,3 @@ private:
} }
#endif // HECLBACKEND_GLSL_HPP

View File

@ -1,5 +1,4 @@
#ifndef HECLBACKEND_GX_HPP #pragma once
#define HECLBACKEND_GX_HPP
#include "Backend.hpp" #include "Backend.hpp"
#include <athena/DNA.hpp> #include <athena/DNA.hpp>
@ -591,4 +590,3 @@ private:
} }
#endif // HECLBACKEND_GX_HPP

View File

@ -1,5 +1,4 @@
#ifndef HECLBACKEND_HLSL_HPP #pragma once
#define HECLBACKEND_HLSL_HPP
#include "ProgrammableCommon.hpp" #include "ProgrammableCommon.hpp"
@ -42,4 +41,3 @@ private:
} }
#endif // HECLBACKEND_HLSL_HPP

View File

@ -1,5 +1,4 @@
#ifndef HECLBACKEND_METAL_HPP #pragma once
#define HECLBACKEND_METAL_HPP
#include "ProgrammableCommon.hpp" #include "ProgrammableCommon.hpp"
@ -44,4 +43,3 @@ private:
} }
#endif // HECLBACKEND_METAL_HPP

View File

@ -1,5 +1,4 @@
#ifndef HECLBACKEND_PROGCOMMON_HPP #pragma once
#define HECLBACKEND_PROGCOMMON_HPP
#include "Backend.hpp" #include "Backend.hpp"
#include "hecl/Runtime.hpp" #include "hecl/Runtime.hpp"
@ -136,4 +135,3 @@ private:
} }
#endif // HECLBACKEND_PROGCOMMON_HPP

View File

@ -11,8 +11,7 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#ifndef HECL_LLVM_ADT_BITVECTOR_H #pragma once
#define HECL_LLVM_ADT_BITVECTOR_H
#include "MathExtras.hpp" #include "MathExtras.hpp"
#include <algorithm> #include <algorithm>
@ -615,4 +614,3 @@ namespace std {
} }
} // end namespace std } // end namespace std
#endif // LLVM_ADT_BITVECTOR_H

View File

@ -1,5 +1,4 @@
#ifndef BLENDERCONNECTION_HPP #pragma once
#define BLENDERCONNECTION_HPP
#if _WIN32 #if _WIN32
#ifndef WIN32_LEAN_AND_MEAN #ifndef WIN32_LEAN_AND_MEAN
@ -715,4 +714,3 @@ public:
} }
#endif // BLENDERCONNECTION_HPP

View File

@ -1,5 +1,4 @@
#ifndef HECL_BLENDERTOKEN_HPP #pragma once
#define HECL_BLENDERTOKEN_HPP
#include <memory> #include <memory>
@ -24,4 +23,3 @@ public:
} }
#endif // HECL_BLENDERTOKEN_HPP

View File

@ -1,5 +1,4 @@
#ifndef CVAR_HPP #pragma once
#define CVAR_HPP
#include <string> #include <string>
#include <functional> #include <functional>
@ -157,5 +156,4 @@ public:
}; };
} }
#endif // CVAR_HPP

View File

@ -1,5 +1,4 @@
#ifndef CVARCOMMONS_HPP #pragma once
#define CVARCOMMONS_HPP
#include "CVarManager.hpp" #include "CVarManager.hpp"
@ -91,4 +90,3 @@ struct CVarCommons
} }
#endif // CVARCOMMONS_HPP

View File

@ -1,5 +1,4 @@
#ifndef CVARMANAGER_HPP #pragma once
#define CVARMANAGER_HPP
#include <unordered_map> #include <unordered_map>
#include <vector> #include <vector>
@ -89,4 +88,3 @@ private:
} }
#endif // CVARMANAGER_HPP

View File

@ -1,5 +1,4 @@
#ifndef HECL_CLIENT_PROCESS_HPP #pragma once
#define HECL_CLIENT_PROCESS_HPP
#include "hecl.hpp" #include "hecl.hpp"
#include "Database.hpp" #include "Database.hpp"
@ -118,4 +117,3 @@ public:
} }
#endif // HECL_CLIENT_PROCESS_HPP

View File

@ -1,5 +1,4 @@
#ifndef __URDE_CONSOLE_HPP__ #pragma once
#define __URDE_CONSOLE_HPP__
#include <string> #include <string>
#include <unordered_map> #include <unordered_map>
@ -113,4 +112,3 @@ public:
}; };
} }
#endif // __URDE_CONSOLE_HPP__

View File

@ -1,5 +1,4 @@
#ifndef HECLDATABASE_HPP #pragma once
#define HECLDATABASE_HPP
#include <iterator> #include <iterator>
#include <string> #include <string>
@ -481,4 +480,3 @@ public:
} }
} }
#endif // HECLDATABASE_HPP

View File

@ -1,5 +1,4 @@
#ifndef HECL_FOURCC_HPP #pragma once
#define HECL_FOURCC_HPP
#include <cstdint> #include <cstdint>
#include <cstddef> #include <cstddef>
@ -59,4 +58,3 @@ template <> struct hash<hecl::FourCC>
}; };
} }
#endif // HECL_FOURCC_HPP

View File

@ -1,5 +1,4 @@
#ifndef HECLFRONTEND_HPP #pragma once
#define HECLFRONTEND_HPP
#include <string> #include <string>
#include <vector> #include <vector>
@ -378,4 +377,3 @@ public:
} }
#endif // HECLFRONTEND_HPP

View File

@ -1,5 +1,4 @@
#ifndef HMDLMETA_HPP #pragma once
#define HMDLMETA_HPP
#include "hecl/hecl.hpp" #include "hecl/hecl.hpp"
#include "athena/DNA.hpp" #include "athena/DNA.hpp"
@ -31,4 +30,3 @@ struct HMDLMeta : athena::io::DNA<athena::Big>
} }
#endif // HMDLMETA_HPP

View File

@ -11,8 +11,7 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#ifndef HECL_LLVM_SUPPORT_MATHEXTRAS_H #pragma once
#define HECL_LLVM_SUPPORT_MATHEXTRAS_H
/// \macro LLVM_GNUC_PREREQ /// \macro LLVM_GNUC_PREREQ
/// \brief Extend the default __GNUC_PREREQ even if glibc's features.h isn't /// \brief Extend the default __GNUC_PREREQ even if glibc's features.h isn't
@ -854,4 +853,3 @@ extern const float huge_valf;
} // End llvm namespace } // End llvm namespace
} // End hecl namespace } // End hecl namespace
#endif

View File

@ -1,5 +1,4 @@
#ifndef HECLMULTIPROGRESSPRINTER_HPP #pragma once
#define HECLMULTIPROGRESSPRINTER_HPP
#include "hecl.hpp" #include "hecl.hpp"
#include <thread> #include <thread>
@ -58,4 +57,3 @@ public:
} }
#endif // HECLMULTIPROGRESSPRINTER_HPP

View File

@ -1,5 +1,4 @@
#ifndef HECLRUNTIME_HPP #pragma once
#define HECLRUNTIME_HPP
#include "hecl.hpp" #include "hecl.hpp"
#include "boo/graphicsdev/IGraphicsDataFactory.hpp" #include "boo/graphicsdev/IGraphicsDataFactory.hpp"
@ -56,4 +55,3 @@ struct HMDLData
} }
} }
#endif // HECLRUNTIME_HPP

View File

@ -1,5 +1,4 @@
#ifndef _HECL_STEAMFINDER_H_ #pragma once
#define _HECL_STEAMFINDER_H_
#include "hecl/SystemChar.hpp" #include "hecl/SystemChar.hpp"
@ -11,4 +10,3 @@ hecl::SystemString FindCommonSteamApp(const hecl::SystemChar* name);
} }
#endif // _HECL_STEAMFINDER_H_

View File

@ -1,5 +1,4 @@
#ifndef SYSTEMCHAR_HPP #pragma once
#define SYSTEMCHAR_HPP
#ifndef _WIN32 #ifndef _WIN32
#include <cstdlib> #include <cstdlib>
@ -62,4 +61,3 @@ typedef struct stat Sstat;
} }
#endif

View File

@ -1,5 +1,4 @@
#ifndef HECL_UNIFORMBUFFERPOOL_HPP #pragma once
#define HECL_UNIFORMBUFFERPOOL_HPP
#include <boo/boo.hpp> #include <boo/boo.hpp>
#include <vector> #include <vector>
@ -204,4 +203,3 @@ public:
} }
#endif // HECL_UNIFORMBUFFERPOOL_HPP

View File

@ -1,5 +1,4 @@
#ifndef HECL_VERTEXBUFFERPOOL_HPP #pragma once
#define HECL_VERTEXBUFFERPOOL_HPP
#include <boo/boo.hpp> #include <boo/boo.hpp>
#include <vector> #include <vector>
@ -208,4 +207,3 @@ public:
} }
#endif // HECL_VERTEXBUFFERPOOL_HPP

View File

@ -1,5 +1,4 @@
#ifndef HECL_HPP #pragma once
#define HECL_HPP
#ifndef _WIN32 #ifndef _WIN32
#include <cstdlib> #include <cstdlib>
@ -1468,4 +1467,3 @@ template <> struct hash<hecl::Hash>
}; };
} }
#endif // HECL_HPP

View File

@ -1,5 +1,4 @@
#ifndef _HECL_WINSUPPORT_H_ #pragma once
#define _HECL_WINSUPPORT_H_
#ifndef WIN32_LEAN_AND_MEAN #ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN 1 #define WIN32_LEAN_AND_MEAN 1
@ -12,4 +11,3 @@
void* memmem(const void *haystack, size_t hlen, const void *needle, size_t nlen); void* memmem(const void *haystack, size_t hlen, const void *needle, size_t nlen);
int asprintf(char** buf, const char* format, ...); int asprintf(char** buf, const char* format, ...);
#endif // _HECL_WINSUPPORT_H_