Convert to pragma once

This commit is contained in:
Jack Andersen 2018-10-06 17:36:44 -10:00
parent 528b350626
commit 0b52f3dbab
56 changed files with 56 additions and 166 deletions

View File

@ -1,5 +1,4 @@
#ifndef BOOOBJECT_HPP #pragma once
#define BOOOBJECT_HPP
#include <atomic> #include <atomic>
#include <mutex> #include <mutex>
@ -52,4 +51,3 @@ public:
} }
#endif // BOOOBJECT_HPP

View File

@ -1,5 +1,4 @@
#ifndef BOO_DEFERREDWINDOWEVENTS_HPP #pragma once
#define BOO_DEFERREDWINDOWEVENTS_HPP
#include <boo/boo.hpp> #include <boo/boo.hpp>
#include <mutex> #include <mutex>
@ -272,4 +271,3 @@ struct DeferredWindowEvents : public IWindowCallback
} }
#endif // BOO_DEFERREDWINDOWEVENTS_HPP

View File

@ -1,5 +1,4 @@
#ifndef IAPPLICATION_HPP #pragma once
#define IAPPLICATION_HPP
#include <memory> #include <memory>
#include <string> #include <string>
@ -93,4 +92,3 @@ ApplicationRun(IApplication::EPlatformType platform,
} }
#endif // IAPPLICATION_HPP

View File

@ -1,5 +1,4 @@
#ifndef IGFXCONTEXT_HPP #pragma once
#define IGFXCONTEXT_HPP
#include <memory> #include <memory>
#include <cstdint> #include <cstdint>
@ -62,4 +61,3 @@ public:
} }
#endif // IGFXCONTEXT_HPP

View File

@ -1,5 +1,4 @@
#ifndef IWINDOW_HPP #pragma once
#define IWINDOW_HPP
#include "System.hpp" #include "System.hpp"
#include <memory> #include <memory>
@ -321,4 +320,3 @@ public:
} }
#endif // IWINDOW_HPP

View File

@ -1,5 +1,4 @@
#ifndef BOO_SYSTEM_HPP #pragma once
#define BOO_SYSTEM_HPP
#ifdef _WIN32 #ifdef _WIN32
#include <winapifamily.h> #include <winapifamily.h>
@ -88,4 +87,3 @@ namespace boo
} }
#endif

View File

@ -1,5 +1,4 @@
#ifndef BOO_THREADLOCALPTR_HPP #pragma once
#define BOO_THREADLOCALPTR_HPP
#ifndef __SWITCH__ #ifndef __SWITCH__
@ -32,4 +31,3 @@ public:
#endif #endif
#endif // BOO_THREADLOCALPTR_HPP

View File

@ -1,5 +1,4 @@
#ifndef UWPVIEWPROVIDER_HPP #pragma once
#define UWPVIEWPROVIDER_HPP
#include "IApplication.hpp" #include "IApplication.hpp"
@ -43,4 +42,3 @@ internal:
} }
#endif // UWPVIEWPROVIDER_HPP

View File

@ -1,5 +1,4 @@
#ifndef BOO_IAUDIOSUBMIX_HPP #pragma once
#define BOO_IAUDIOSUBMIX_HPP
#include <cstddef> #include <cstddef>
#include <cstdint> #include <cstdint>
@ -54,4 +53,3 @@ struct IAudioSubmixCallback
} }
#endif // BOO_IAUDIOVOICE_HPP

View File

@ -1,5 +1,4 @@
#ifndef BOO_IAUDIOVOICE_HPP #pragma once
#define BOO_IAUDIOVOICE_HPP
#include <cstddef> #include <cstddef>
#include <cstdint> #include <cstdint>
@ -109,4 +108,3 @@ struct IAudioVoiceCallback
} }
#endif // BOO_IAUDIOVOICE_HPP

View File

@ -1,5 +1,4 @@
#ifndef BOO_IAUDIOVOICEENGINE_HPP #pragma once
#define BOO_IAUDIOVOICEENGINE_HPP
#include "IAudioVoice.hpp" #include "IAudioVoice.hpp"
#include "IAudioSubmix.hpp" #include "IAudioSubmix.hpp"
@ -115,4 +114,3 @@ std::unique_ptr<IAudioVoiceEngine> NewWAVAudioVoiceEngine(const wchar_t* path, d
} }
#endif // BOO_IAUDIOVOICEENGINE_HPP

View File

@ -1,5 +1,4 @@
#ifndef BOO_IMIDIPORT_HPP #pragma once
#define BOO_IMIDIPORT_HPP
#include <string> #include <string>
#include <functional> #include <functional>
@ -61,4 +60,3 @@ public:
} }
#endif // BOO_IMIDIPORT_HPP

View File

@ -1,5 +1,4 @@
#ifndef BOO_IMIDIREADER_HPP #pragma once
#define BOO_IMIDIREADER_HPP
#include <cstdlib> #include <cstdlib>
#include <cstdint> #include <cstdint>
@ -40,4 +39,3 @@ public:
} }
#endif // BOO_IMIDIREADER_HPP

View File

@ -1,5 +1,4 @@
#ifndef BOO_MIDIDECODER_HPP #pragma once
#define BOO_MIDIDECODER_HPP
#include "boo/audiodev/IMIDIReader.hpp" #include "boo/audiodev/IMIDIReader.hpp"
#include "boo/audiodev/IMIDIPort.hpp" #include "boo/audiodev/IMIDIPort.hpp"
@ -25,4 +24,3 @@ public:
} }
#endif // BOO_MIDIDECODER_HPP

View File

@ -1,5 +1,4 @@
#ifndef BOO_MIDIENCODER_HPP #pragma once
#define BOO_MIDIENCODER_HPP
#include "boo/audiodev/IMIDIReader.hpp" #include "boo/audiodev/IMIDIReader.hpp"
#include "boo/audiodev/IMIDIPort.hpp" #include "boo/audiodev/IMIDIPort.hpp"
@ -47,4 +46,3 @@ public:
} }
#endif // BOO_MIDIENCODER_HPP

View File

@ -1,5 +1,4 @@
#ifndef BOO_HPP #pragma once
#define BOO_HPP
#include "IApplication.hpp" #include "IApplication.hpp"
#include "IWindow.hpp" #include "IWindow.hpp"
@ -12,4 +11,3 @@
#include "graphicsdev/IGraphicsDataFactory.hpp" #include "graphicsdev/IGraphicsDataFactory.hpp"
#include "DeferredWindowEvents.hpp" #include "DeferredWindowEvents.hpp"
#endif // BOO_HPP

View File

@ -1,5 +1,4 @@
#ifndef GDEV_D3D_HPP #pragma once
#define GDEV_D3D_HPP
#if _WIN32 #if _WIN32
@ -53,4 +52,3 @@ public:
} }
#endif // _WIN32 #endif // _WIN32
#endif // GDEV_D3D_HPP

View File

@ -1,5 +1,4 @@
#ifndef GDEV_GL_HPP #pragma once
#define GDEV_GL_HPP
#if BOO_HAS_GL #if BOO_HAS_GL
#include "IGraphicsDataFactory.hpp" #include "IGraphicsDataFactory.hpp"
@ -68,4 +67,3 @@ public:
} }
#endif #endif
#endif // GDEV_GL_HPP

View File

@ -1,5 +1,4 @@
#ifndef GDEV_GLSLMACROS_HPP #pragma once
#define GDEV_GLSLMACROS_HPP
#define BOO_GLSL_MAX_UNIFORM_COUNT 8 #define BOO_GLSL_MAX_UNIFORM_COUNT 8
#define BOO_GLSL_MAX_TEXTURE_COUNT 8 #define BOO_GLSL_MAX_TEXTURE_COUNT 8
@ -51,4 +50,3 @@
"#define TBINDING7\n" \ "#define TBINDING7\n" \
"#endif\n" "#endif\n"
#endif // GDEV_GLSLMACROS_HPP

View File

@ -1,5 +1,4 @@
#ifndef IGFXCOMMANDQUEUE_HPP #pragma once
#define IGFXCOMMANDQUEUE_HPP
#include "IGraphicsDataFactory.hpp" #include "IGraphicsDataFactory.hpp"
#include "boo/IWindow.hpp" #include "boo/IWindow.hpp"
@ -43,4 +42,3 @@ struct IGraphicsCommandQueue
} }
#endif // IGFXCOMMANDQUEUE_HPP

View File

@ -1,5 +1,4 @@
#ifndef IGFXDATAFACTORY_HPP #pragma once
#define IGFXDATAFACTORY_HPP
#include <memory> #include <memory>
#include <functional> #include <functional>
@ -358,4 +357,3 @@ using FactoryCommitFunc = std::function<bool(GraphicsDataFactoryContext& ctx)>;
} }
#endif // IGFXDATAFACTORY_HPP

View File

@ -1,5 +1,4 @@
#ifndef GDEV_METAL_HPP #pragma once
#define GDEV_METAL_HPP
#ifdef __APPLE__ #ifdef __APPLE__
#if BOO_HAS_METAL #if BOO_HAS_METAL
@ -83,4 +82,3 @@ public:
#endif #endif
#endif // __APPLE__ #endif // __APPLE__
#endif // GDEV_METAL_HPP

View File

@ -1,5 +1,4 @@
#ifndef GDEV_VULKAN_HPP #pragma once
#define GDEV_VULKAN_HPP
#if BOO_HAS_VULKAN #if BOO_HAS_VULKAN
#include "IGraphicsDataFactory.hpp" #include "IGraphicsDataFactory.hpp"
@ -184,4 +183,3 @@ public:
} }
#endif #endif
#endif // GDEV_VULKAN_HPP

View File

@ -1,6 +1,5 @@
// This file is generated. // This file is generated.
#ifndef HELPERSDISPATCHTABLE_H #pragma once
#define HELPERSDISPATCHTABLE_H
#include <vulkan/vulkan.h> #include <vulkan/vulkan.h>
@ -216,4 +215,3 @@ void init_dispatch_table_bottom(VkInstance instance, VkDevice dev);
} // namespace vk } // namespace vk
#endif // HELPERSDISPATCHTABLE_H

View File

@ -1,9 +1,7 @@
#ifndef CCAFEPROPAD_HPP #pragma once
#define CCAFEPROPAD_HPP
namespace boo namespace boo
{ {
} }
#endif // CCAFEPROPAD_HPP

View File

@ -1,5 +1,4 @@
#ifndef CDEVICEBASE #pragma once
#define CDEVICEBASE
#include <cstdint> #include <cstdint>
#include <cstdlib> #include <cstdlib>
@ -91,4 +90,3 @@ public:
} }
#endif // CDEVICEBASE

View File

@ -1,5 +1,4 @@
#ifndef CDEVICEFINDER_HPP #pragma once
#define CDEVICEFINDER_HPP
#include <unordered_set> #include <unordered_set>
#include <typeindex> #include <typeindex>
@ -165,4 +164,3 @@ public:
} }
#endif // CDEVICEFINDER_HPP

View File

@ -1,5 +1,4 @@
#ifndef SDeviceSignature_HPP #pragma once
#define SDeviceSignature_HPP
#include <vector> #include <vector>
#include <functional> #include <functional>
@ -50,5 +49,4 @@ extern const DeviceSignature BOO_DEVICE_SIGS[];
} }
#endif // SDeviceSignature_HPP

View File

@ -1,5 +1,4 @@
#ifndef CDEVICETOKEN #pragma once
#define CDEVICETOKEN
#include <string> #include <string>
#include "DeviceBase.hpp" #include "DeviceBase.hpp"
@ -77,4 +76,3 @@ public:
} }
#endif // CDEVICETOKEN

View File

@ -1,5 +1,4 @@
#ifndef CDOLPHINSMASHADAPTER_HPP #pragma once
#define CDOLPHINSMASHADAPTER_HPP
#include <cstdint> #include <cstdint>
#include "DeviceBase.hpp" #include "DeviceBase.hpp"
@ -90,4 +89,3 @@ public:
} }
#endif // CDOLPHINSMASHADAPTER_HPP

View File

@ -1,5 +1,4 @@
#ifndef CDUALSHOCKPAD_HPP #pragma once
#define CDUALSHOCKPAD_HPP
#include <cstdint> #include <cstdint>
#include <type_traits> #include <type_traits>
#include "DeviceBase.hpp" #include "DeviceBase.hpp"
@ -183,4 +182,3 @@ public:
} }
#endif // CDUALSHOCKPAD_HPP

View File

@ -1,5 +1,4 @@
#ifndef CGENERICPAD_HPP #pragma once
#define CGENERICPAD_HPP
#include "DeviceBase.hpp" #include "DeviceBase.hpp"
#include "HIDParser.hpp" #include "HIDParser.hpp"
@ -32,4 +31,3 @@ public:
} }
#endif // CGENERICPAD_HPP

View File

@ -1,5 +1,4 @@
#ifndef HIDPARSER_HPP #pragma once
#define HIDPARSER_HPP
#include "boo/System.hpp" #include "boo/System.hpp"
#include <vector> #include <vector>
@ -219,4 +218,3 @@ public:
} }
#endif // HIDPARSER_HPP

View File

@ -1,5 +1,4 @@
#ifndef IHIDLISTENER_HPP #pragma once
#define IHIDLISTENER_HPP
#include <unordered_map> #include <unordered_map>
#include <mutex> #include <mutex>
@ -37,4 +36,3 @@ std::unique_ptr<IHIDListener> IHIDListenerNew(DeviceFinder& finder);
} }
#endif // IHIDLISTENER_HPP

View File

@ -1,5 +1,4 @@
#ifndef NINTENDOPOWERA_HPP #pragma once
#define NINTENDOPOWERA_HPP
#include "DeviceBase.hpp" #include "DeviceBase.hpp"
#include "boo/System.hpp" #include "boo/System.hpp"
@ -51,4 +50,3 @@ public:
}; };
} }
#endif // NINTENDOPWERA_HPP

View File

@ -1,9 +1,7 @@
#ifndef CREVOLUTIONPAD_HPP #pragma once
#define CREVOLUTIONPAD_HPP
namespace boo namespace boo
{ {
} }
#endif // CREVOLUTIONPAD_HPP

View File

@ -1,5 +1,4 @@
#ifndef XINPUTPAD_HPP #pragma once
#define XINPUTPAD_HPP
#include "DeviceBase.hpp" #include "DeviceBase.hpp"
#include "DeviceSignature.hpp" #include "DeviceSignature.hpp"
@ -65,4 +64,3 @@ public:
} }
#endif // XINPUTPAD_HPP

View File

@ -1,5 +1,4 @@
#ifndef __CFPOINTER_HPP__ #pragma once
#define __CFPOINTER_HPP__
#include <CoreFoundation/CoreFoundation.h> #include <CoreFoundation/CoreFoundation.h>
#include <CoreFoundation/CFPlugInCOM.h> #include <CoreFoundation/CFPlugInCOM.h>
@ -154,4 +153,3 @@ private:
} }
}; };
#endif // __CFPOINTER_HPP__

View File

@ -1,5 +1,4 @@
#ifndef BOO_INTERNAL_COMMON_HPP #pragma once
#define BOO_INTERNAL_COMMON_HPP
#include "boo/BooObject.hpp" #include "boo/BooObject.hpp"
#include <iterator> #include <iterator>
@ -78,4 +77,3 @@ static inline uint32_t flp2(uint32_t x)
} }
#endif // BOO_INTERNAL_COMMON_HPP

View File

@ -1,5 +1,4 @@
#ifndef BOO_AUDIOMATRIX_HPP #pragma once
#define BOO_AUDIOMATRIX_HPP
#include "boo/audiodev/IAudioVoice.hpp" #include "boo/audiodev/IAudioVoice.hpp"
#include <vector> #include <vector>
@ -163,4 +162,3 @@ public:
} }
#endif // BOO_AUDIOMATRIX_HPP

View File

@ -1,5 +1,4 @@
#ifndef BOO_AUDIOSUBMIX_HPP #pragma once
#define BOO_AUDIOSUBMIX_HPP
#include "boo/audiodev/IAudioSubmix.hpp" #include "boo/audiodev/IAudioSubmix.hpp"
#include <list> #include <list>
@ -101,4 +100,3 @@ template <> inline float*& AudioSubmix::_getRedirect<float>() { return m_redirec
} }
#endif // BOO_AUDIOSUBMIX_HPP

View File

@ -1,5 +1,4 @@
#ifndef BOO_AUDIOVOICE_HPP #pragma once
#define BOO_AUDIOVOICE_HPP
#include <soxr.h> #include <soxr.h>
#include <list> #include <list>
@ -131,4 +130,3 @@ public:
} }
#endif // BOO_AUDIOVOICE_HPP

View File

@ -1,5 +1,4 @@
#ifndef BOO_AUDIOVOICEENGINE_HPP #pragma once
#define BOO_AUDIOVOICEENGINE_HPP
#include "boo/audiodev/IAudioVoiceEngine.hpp" #include "boo/audiodev/IAudioVoiceEngine.hpp"
#include "LtRtProcessing.hpp" #include "LtRtProcessing.hpp"
@ -93,4 +92,3 @@ template <> inline std::vector<float>& BaseAudioVoiceEngine::_getLtRtIn<float>()
} }
#endif // BOO_AUDIOVOICEENGINE_HPP

View File

@ -1,5 +1,4 @@
#ifndef BOO_AUDIOCOMMON_HPP #pragma once
#define BOO_AUDIOCOMMON_HPP
#include <soxr.h> #include <soxr.h>
#include "../Common.hpp" #include "../Common.hpp"
@ -21,4 +20,3 @@ struct AudioVoiceEngineMixInfo
} }
#endif // BOO_AUDIOCOMMON_HPP

View File

@ -1,5 +1,4 @@
#ifndef BOO_LINUXMIDI_HPP #pragma once
#define BOO_LINUXMIDI_HPP
#include "AudioVoiceEngine.hpp" #include "AudioVoiceEngine.hpp"
#include "logvisor/logvisor.hpp" #include "logvisor/logvisor.hpp"
@ -309,4 +308,3 @@ struct LinuxMidi : BaseAudioVoiceEngine
} }
#endif // BOO_LINUXMIDI_HPP

View File

@ -1,5 +1,4 @@
#ifndef BOO_LTRTPROCESSING_HPP #pragma once
#define BOO_LTRTPROCESSING_HPP
#include "boo/System.hpp" #include "boo/System.hpp"
#include "boo/audiodev/IAudioVoice.hpp" #include "boo/audiodev/IAudioVoice.hpp"
@ -80,4 +79,3 @@ public:
} }
#endif // BOO_LTRTPROCESSING_HPP

View File

@ -1,5 +1,4 @@
#ifndef BOO_MIDICOMMON_HPP #pragma once
#define BOO_MIDICOMMON_HPP
namespace boo namespace boo
{ {
@ -29,4 +28,3 @@ enum class Status
} }
#endif // BOO_MIDICOMMON_HPP

View File

@ -1,5 +1,4 @@
#ifndef BOO_GRAPHICSDEV_COMMON_HPP #pragma once
#define BOO_GRAPHICSDEV_COMMON_HPP
/* Private header for managing shader data /* Private header for managing shader data
* binding lifetimes through rendering cycle */ * binding lifetimes through rendering cycle */
@ -163,4 +162,3 @@ void UpdateGammaLUT(ITextureD* tex, float gamma);
} }
#endif // BOO_GRAPHICSDEV_COMMON_HPP

View File

@ -1,5 +1,4 @@
#ifndef IHIDDEVICE_HPP #pragma once
#define IHIDDEVICE_HPP
#include "boo/inputdev/DeviceToken.hpp" #include "boo/inputdev/DeviceToken.hpp"
#include "boo/inputdev/DeviceBase.hpp" #include "boo/inputdev/DeviceBase.hpp"
@ -35,4 +34,3 @@ public:
} }
#endif // IHIDDEVICE_HPP

View File

@ -1,5 +1,4 @@
#ifndef __IOKITPOINTER_HPP__ #pragma once
#define __IOKITPOINTER_HPP__
#include "../CFPointer.hpp" #include "../CFPointer.hpp"
#include <IOKit/IOTypes.h> #include <IOKit/IOTypes.h>
@ -118,4 +117,3 @@ private:
} }
}; };
#endif // __IOKITPOINTER_HPP__

View File

@ -1,5 +1,4 @@
#ifndef BOO_COCOACOMMON_HPP #pragma once
#define BOO_COCOACOMMON_HPP
#if __APPLE__ #if __APPLE__
#if !__has_feature(objc_arc) #if !__has_feature(objc_arc)
@ -42,4 +41,3 @@ namespace boo
#endif #endif
#endif // __APPLE__ #endif // __APPLE__
#endif // BOO_COCOACOMMON_HPP

View File

@ -1,5 +1,4 @@
#ifndef BOO_UWPCOMMON_HPP #pragma once
#define BOO_UWPCOMMON_HPP
#include "WinCommon.hpp" #include "WinCommon.hpp"
@ -84,4 +83,3 @@ struct Boo3DAppContextUWP : Boo3DAppContext
} }
}; };
#endif // BOO_UWPCOMMON_HPP

View File

@ -1,5 +1,4 @@
#ifndef BOO_WIN32COMMON_HPP #pragma once
#define BOO_WIN32COMMON_HPP
#ifndef _CRT_SECURE_NO_WARNINGS #ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS 1 /* STFU MSVC */ #define _CRT_SECURE_NO_WARNINGS 1 /* STFU MSVC */
@ -168,4 +167,3 @@ namespace boo
extern Win32Cursors WIN32_CURSORS; extern Win32Cursors WIN32_CURSORS;
} }
#endif // BOO_WIN32COMMON_HPP

View File

@ -1,5 +1,4 @@
#ifndef BOO_WINCOMMON_HPP #pragma once
#define BOO_WINCOMMON_HPP
#include <unordered_map> #include <unordered_map>
#include "boo/IWindow.hpp" #include "boo/IWindow.hpp"
@ -133,4 +132,3 @@ static inline std::wstring MBSTWCS(const char* str)
return strTo; return strTo;
} }
#endif // BOO_WINCOMMON_HPP

View File

@ -1,5 +1,4 @@
#ifndef BOO_XLIBCOMMON_HPP #pragma once
#define BOO_XLIBCOMMON_HPP
#include <X11/Xlib.h> #include <X11/Xlib.h>
@ -19,4 +18,3 @@ extern XlibCursors X_CURSORS;
} }
#endif // BOO_XLIBCOMMON_HPP

@ -1 +1 @@
Subproject commit 22ed01ffc5e5944479ed69d7b45dc8c96465063e Subproject commit 1b6c2ae7159fd4fd7a80b1951d5ed43e4d1a3676