Replace all include guard ifdefs with "#pragma once"

This commit is contained in:
lioncash
2014-02-10 18:07:16 -05:00
committed by Lioncash
parent a0a65a2906
commit d2038049f5
462 changed files with 676 additions and 2308 deletions
@@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _BPMEMLOADER_H_
#define _BPMEMLOADER_H_
#pragma once
#include "Common.h"
@@ -12,5 +11,3 @@
void InitBPMemory();
void SWBPWritten(int address, int newvalue);
void SWLoadBPReg(u32 value);
#endif
@@ -2,13 +2,9 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _CPMEMLOADER_H_
#define _CPMEMLOADER_H_
#pragma once
#include "Common.h"
#include "CPMemory.h"
void SWLoadCPReg(u32 sub_cmd, u32 value);
#endif
+1 -6
View File
@@ -2,9 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _CLIPPER_H_
#define _CLIPPER_H_
#pragma once
#include "Common.h"
#include "NativeVertexFormat.h"
@@ -27,6 +25,3 @@ namespace Clipper
void DoState(PointerWrap &p);
}
#endif
@@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _DEBUGUTIL_H
#define _DEBUGUTIL_H
#pragma once
namespace DebugUtil
{
@@ -23,5 +22,3 @@ namespace DebugUtil
void DrawTempBuffer(u8 *color, int buffer);
void CopyTempBuffer(s16 x, s16 y, int bufferBase, int subBuffer, const char *name);
}
#endif
+1 -6
View File
@@ -2,9 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _EFB_COPY_H_
#define _EFB_COPY_H_
#pragma once
#include "Common.h"
@@ -14,6 +12,3 @@ namespace EfbCopy
// Clear the EFB if needed
void CopyEfb();
}
#endif
@@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _EFB_INTERFACE_H_
#define _EFB_INTERFACE_H_
#pragma once
#include "VideoCommon.h"
@@ -53,5 +52,3 @@ namespace EfbInterface
void DoState(PointerWrap &p);
}
#endif
@@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _HW_RASTERIZER_H
#define _HW_RASTERIZER_H
#pragma once
#include <map>
@@ -46,5 +45,3 @@ namespace HwRasterizer
typedef std::map<u32, TexCacheEntry> TextureCache;
static TextureCache textures;
}
#endif
@@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _NATIVEVERTEXFORMAT_H
#define _NATIVEVERTEXFORMAT_H
#pragma once
#include "Vec3.h"
#include "ChunkFile.h"
@@ -93,5 +92,3 @@ struct OutputVertexData
}
};
#endif
@@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _OPCODEDECODER_H_
#define _OPCODEDECODER_H_
#pragma once
#include "CommonTypes.h"
#include "ChunkFile.h"
@@ -47,5 +46,3 @@ namespace OpcodeDecoder
void DoState(PointerWrap &p);
}
#endif
@@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _RASTERFONT_H_
#define _RASTERFONT_H_
#pragma once
class RasterFont
{
@@ -26,5 +25,3 @@ private:
char *temp_buffer;
enum {TEMP_BUFFER_SIZE = 64 * 1024};
};
#endif // _RASTERFONT_H_
@@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _RASTERIZER_H_
#define _RASTERIZER_H_
#pragma once
#include "NativeVertexFormat.h"
#include "ChunkFile.h"
@@ -50,5 +49,3 @@ namespace Rasterizer
void DoState(PointerWrap &p);
}
#endif
@@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _COMMANDPROCESSOR_H_
#define _COMMANDPROCESSOR_H_
#pragma once
#include "Common.h"
@@ -141,6 +140,3 @@ namespace SWCommandProcessor
void SetRendering(bool enabled);
} // end of namespace SWCommandProcessor
#endif
@@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _PIXELENGINE_H
#define _PIXELENGINE_H
#pragma once
#include "Common.h"
#include "VideoCommon.h"
@@ -214,5 +213,3 @@ namespace SWPixelEngine
bool AllowIdleSkipping();
} // end of namespace SWPixelEngine
#endif
@@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _RENDERER_H_
#define _RENDERER_H_
#pragma once
#include "CommonTypes.h"
#include "EfbInterface.h"
@@ -27,5 +26,3 @@ namespace SWRenderer
void Swap(u32 fbWidth, u32 fbHeight);
void SwapBuffer();
}
#endif
@@ -5,8 +5,7 @@
#include "CommonTypes.h"
#include "SWVideoConfig.h"
#ifndef _STATISTICS_H
#define _STATISTICS_H
#pragma once
struct SWStatistics
{
@@ -46,5 +45,3 @@ extern SWStatistics swstats;
#define ADDSTAT(a,b) ;
#define SETSTAT(a,x) ;
#endif
#endif // _STATISTICS_H
@@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _VERTEXLOADER_H_
#define _VERTEXLOADER_H_
#pragma once
#include "Common.h"
@@ -59,5 +58,3 @@ public:
void LoadVertex();
void DoState(PointerWrap &p);
};
#endif
@@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _VIDEOSOFTWARE_CONFIG_H_
#define _VIDEOSOFTWARE_CONFIG_H_
#pragma once
#include "Common.h"
@@ -43,5 +42,3 @@ struct SWVideoConfig : NonCopyable
};
extern SWVideoConfig g_SWVideoConfig;
#endif // _VIDEOSOFTWARE_CONFIG_H_
@@ -2,9 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _SETUPUNIT_H_
#define _SETUPUNIT_H_
#pragma once
#include "Common.h"
#include "NativeVertexFormat.h"
@@ -35,5 +33,3 @@ public:
void SetupVertex();
void DoState(PointerWrap &p);
};
#endif
+1 -4
View File
@@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _TEV_H_
#define _TEV_H_
#pragma once
#include "BPMemLoader.h"
#include "ChunkFile.h"
@@ -87,5 +86,3 @@ public:
void DoState(PointerWrap &p);
};
#endif
@@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _TEXTUREENCODER_H_
#define _TEXTUREENCODER_H_
#pragma once
#include "Common.h"
@@ -11,5 +10,3 @@ namespace TextureEncoder
{
void Encode(u8 *dest_ptr);
}
#endif

Some files were not shown because too many files have changed in this diff Show More