mirror of
https://github.com/encounter/boo.git
synced 2026-07-09 18:18:49 -07:00
Convert to pragma once
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#ifndef BOOOBJECT_HPP
|
||||
#define BOOOBJECT_HPP
|
||||
#pragma once
|
||||
|
||||
#include <atomic>
|
||||
#include <mutex>
|
||||
@@ -52,4 +51,3 @@ public:
|
||||
|
||||
}
|
||||
|
||||
#endif // BOOOBJECT_HPP
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef IGFXCONTEXT_HPP
|
||||
#define IGFXCONTEXT_HPP
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <cstdint>
|
||||
@@ -62,4 +61,3 @@ public:
|
||||
|
||||
}
|
||||
|
||||
#endif // IGFXCONTEXT_HPP
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef UWPVIEWPROVIDER_HPP
|
||||
#define UWPVIEWPROVIDER_HPP
|
||||
#pragma once
|
||||
|
||||
#include "IApplication.hpp"
|
||||
|
||||
@@ -43,4 +42,3 @@ internal:
|
||||
|
||||
}
|
||||
|
||||
#endif // UWPVIEWPROVIDER_HPP
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
+1
-3
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user