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
#define BOOOBJECT_HPP
#pragma once
#include <atomic>
#include <mutex>
@ -52,4 +51,3 @@ public:
}
#endif // BOOOBJECT_HPP

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,4 @@
#ifndef BOO_IAUDIOVOICEENGINE_HPP
#define BOO_IAUDIOVOICEENGINE_HPP
#pragma once
#include "IAudioVoice.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
#define BOO_IMIDIPORT_HPP
#pragma once
#include <string>
#include <functional>
@ -61,4 +60,3 @@ public:
}
#endif // BOO_IMIDIPORT_HPP

View File

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

View File

@ -1,5 +1,4 @@
#ifndef BOO_MIDIDECODER_HPP
#define BOO_MIDIDECODER_HPP
#pragma once
#include "boo/audiodev/IMIDIReader.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
#define BOO_MIDIENCODER_HPP
#pragma once
#include "boo/audiodev/IMIDIReader.hpp"
#include "boo/audiodev/IMIDIPort.hpp"
@ -47,4 +46,3 @@ public:
}
#endif // BOO_MIDIENCODER_HPP

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,4 @@
#ifndef IGFXDATAFACTORY_HPP
#define IGFXDATAFACTORY_HPP
#pragma once
#include <memory>
#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
#define GDEV_METAL_HPP
#pragma once
#ifdef __APPLE__
#if BOO_HAS_METAL
@ -83,4 +82,3 @@ public:
#endif
#endif // __APPLE__
#endif // GDEV_METAL_HPP

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,4 @@
#ifndef IHIDLISTENER_HPP
#define IHIDLISTENER_HPP
#pragma once
#include <unordered_map>
#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
#define NINTENDOPOWERA_HPP
#pragma once
#include "DeviceBase.hpp"
#include "boo/System.hpp"
@ -51,4 +50,3 @@ public:
};
}
#endif // NINTENDOPWERA_HPP

View File

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,4 @@
#ifndef BOO_AUDIOSUBMIX_HPP
#define BOO_AUDIOSUBMIX_HPP
#pragma once
#include "boo/audiodev/IAudioSubmix.hpp"
#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
#define BOO_AUDIOVOICE_HPP
#pragma once
#include <soxr.h>
#include <list>
@ -131,4 +130,3 @@ public:
}
#endif // BOO_AUDIOVOICE_HPP

View File

@ -1,5 +1,4 @@
#ifndef BOO_AUDIOVOICEENGINE_HPP
#define BOO_AUDIOVOICEENGINE_HPP
#pragma once
#include "boo/audiodev/IAudioVoiceEngine.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
#define BOO_AUDIOCOMMON_HPP
#pragma once
#include <soxr.h>
#include "../Common.hpp"
@ -21,4 +20,3 @@ struct AudioVoiceEngineMixInfo
}
#endif // BOO_AUDIOCOMMON_HPP

View File

@ -1,5 +1,4 @@
#ifndef BOO_LINUXMIDI_HPP
#define BOO_LINUXMIDI_HPP
#pragma once
#include "AudioVoiceEngine.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
#define BOO_LTRTPROCESSING_HPP
#pragma once
#include "boo/System.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
#define BOO_MIDICOMMON_HPP
#pragma once
namespace boo
{
@ -29,4 +28,3 @@ enum class Status
}
#endif // BOO_MIDICOMMON_HPP

View File

@ -1,5 +1,4 @@
#ifndef BOO_GRAPHICSDEV_COMMON_HPP
#define BOO_GRAPHICSDEV_COMMON_HPP
#pragma once
/* Private header for managing shader data
* 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
#define IHIDDEVICE_HPP
#pragma once
#include "boo/inputdev/DeviceToken.hpp"
#include "boo/inputdev/DeviceBase.hpp"
@ -35,4 +34,3 @@ public:
}
#endif // IHIDDEVICE_HPP

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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