Replace all include guard ifdefs with "#pragma once"

This commit is contained in:
lioncash
2014-02-10 13:54:46 -05:00
committed by Lioncash
parent a0a65a2906
commit d2038049f5
462 changed files with 676 additions and 2308 deletions

View File

@ -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

View File

@ -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

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

View File

@ -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

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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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_

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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_

View File

@ -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

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

View File

@ -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

View File

@ -2,9 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _TEXTURESAMPLER_H_
#define _TEXTURESAMPLER_H_
#pragma once
#include "Common.h"
@ -16,6 +14,3 @@ namespace TextureSampler
enum { RED_SMP, GRN_SMP, BLU_SMP, ALP_SMP };
}
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _TRANSFORM_UNIT_H_
#define _TRANSFORM_UNIT_H_
#pragma once
struct InputVertexData;
struct OutputVertexData;
@ -20,5 +19,3 @@ namespace TransformUnit
void TransformColor(const InputVertexData *src, OutputVertexData *dst);
void TransformTexCoord(const InputVertexData *src, OutputVertexData *dst, bool specialCase);
}
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _VEC3_H
#define _VEC3_H
#pragma once
#include <stdlib.h>
#include <math.h>
@ -106,5 +105,3 @@ public:
p.Do(z);
}
};
#endif

View File

@ -1,6 +1,4 @@
#ifndef SW_VIDEO_BACKEND_H_
#define SW_VIDEO_BACKEND_H_
#pragma once
#include "VideoBackendBase.h"
@ -63,5 +61,3 @@ public:
};
}
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _VIDEOSOFTWARE_CONFIG_DIAG_H_
#define _VIDEOSOFTWARE_CONFIG_DIAG_H_
#pragma once
#include <vector>
#include <string>
@ -48,5 +47,3 @@ protected:
SWVideoConfig& vconfig;
std::string ininame;
};
#endif

View File

@ -2,9 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _XFMEMLOADER_H_
#define _XFMEMLOADER_H_
#pragma once
#include "Common.h"
@ -241,5 +239,3 @@ void XFWritten(u32 transferSize, u32 baseAddress);
void SWLoadXFReg(u32 transferSize, u32 baseAddress, u32 *pData);
void SWLoadIndexedXF(u32 val, int array);
#endif