diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2015-05-19 16:32:43 +0100 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2015-05-20 14:17:50 +0100 |
commit | 9653f95f75863870a9e6b1ffad8c0ab48fa3fa4d (patch) | |
tree | f2b46c3c25f91e83e79b5cbeade943dfd4539e12 /helpers | |
parent | a6b011b102975ab75cf5f130ec1be93b24d913ee (diff) |
common,cli,wrappers,retrace,gui: Use #pragma once.
Smaller footprint, and simplifies refactoring.
Diffstat (limited to 'helpers')
-rw-r--r-- | helpers/com_ptr.hpp | 4 | ||||
-rw-r--r-- | helpers/d3d10size.hpp | 4 | ||||
-rw-r--r-- | helpers/d3d11size.hpp | 4 | ||||
-rw-r--r-- | helpers/d3d7size.hpp | 4 | ||||
-rw-r--r-- | helpers/d3d8size.hpp | 4 | ||||
-rw-r--r-- | helpers/d3d9size.hpp | 4 | ||||
-rw-r--r-- | helpers/d3dcommonsize.hpp | 4 | ||||
-rw-r--r-- | helpers/d3dshader.hpp | 4 | ||||
-rw-r--r-- | helpers/dxgisize.hpp | 4 | ||||
-rw-r--r-- | helpers/eglsize.hpp | 5 | ||||
-rw-r--r-- | helpers/glprofile.hpp | 4 | ||||
-rw-r--r-- | helpers/glsize.hpp | 4 |
12 files changed, 12 insertions, 37 deletions
diff --git a/helpers/com_ptr.hpp b/helpers/com_ptr.hpp index 83384f74..e822b6e8 100644 --- a/helpers/com_ptr.hpp +++ b/helpers/com_ptr.hpp @@ -23,8 +23,7 @@ * **************************************************************************/ -#ifndef COM_PTR_HPP -#define COM_PTR_HPP +#pragma once #include <assert.h> @@ -86,4 +85,3 @@ private: -#endif // COM_PTR_HPP diff --git a/helpers/d3d10size.hpp b/helpers/d3d10size.hpp index c9785615..1818b177 100644 --- a/helpers/d3d10size.hpp +++ b/helpers/d3d10size.hpp @@ -30,8 +30,7 @@ * Auxiliary functions to compute the size of array/blob arguments. */ -#ifndef _D3D10SIZE_HPP_ -#define _D3D10SIZE_HPP_ +#pragma once /* We purposedly don't include any D3D header, so that this header can be used @@ -280,4 +279,3 @@ _getQueryType(ID3D10Asynchronous *pAsync) } -#endif /* _D3D10SIZE_HPP_ */ diff --git a/helpers/d3d11size.hpp b/helpers/d3d11size.hpp index 4c59510f..f3f97b1a 100644 --- a/helpers/d3d11size.hpp +++ b/helpers/d3d11size.hpp @@ -30,8 +30,7 @@ * Auxiliary functions to compute the size of array/blob arguments. */ -#ifndef _D3D11SIZE_HPP_ -#define _D3D11SIZE_HPP_ +#pragma once /* We purposedly don't include any D3D header, so that this header can be used @@ -226,4 +225,3 @@ _getQueryType(ID3D11Asynchronous *pAsync) } -#endif /* _D3D11SIZE_HPP_ */ diff --git a/helpers/d3d7size.hpp b/helpers/d3d7size.hpp index d7a7e4d0..1d96cda6 100644 --- a/helpers/d3d7size.hpp +++ b/helpers/d3d7size.hpp @@ -30,8 +30,7 @@ * Auxiliary functions to compute the size of array/blob arguments. */ -#ifndef _D3D7SIZE_HPP_ -#define _D3D7SIZE_HPP_ +#pragma once static inline size_t @@ -103,5 +102,4 @@ _getVertexSize(DWORD dwFVF) { -#endif /* _D3D7SIZE_HPP_ */ diff --git a/helpers/d3d8size.hpp b/helpers/d3d8size.hpp index b84b9002..ba662f36 100644 --- a/helpers/d3d8size.hpp +++ b/helpers/d3d8size.hpp @@ -30,8 +30,7 @@ * Auxiliary functions to compute the size of array/blob arguments. */ -#ifndef _D3D8SIZE_HPP_ -#define _D3D8SIZE_HPP_ +#pragma once #include "d3dcommonsize.hpp" @@ -232,4 +231,3 @@ _getMapInfo(IDirect3DVolumeTexture8 *pTexture, UINT Level, const D3DLOCKED_BOX * } -#endif /* _D3D8SIZE_HPP_ */ diff --git a/helpers/d3d9size.hpp b/helpers/d3d9size.hpp index 04f5e593..11ea14c0 100644 --- a/helpers/d3d9size.hpp +++ b/helpers/d3d9size.hpp @@ -30,8 +30,7 @@ * Auxiliary functions to compute the size of array/blob arguments. */ -#ifndef _D3D9SIZE_HPP_ -#define _D3D9SIZE_HPP_ +#pragma once #include "d3dcommonsize.hpp" @@ -233,4 +232,3 @@ _getMapInfo(IDirect3DVolumeTexture9 *pTexture, UINT Level, const D3DLOCKED_BOX * } -#endif /* _D3D9SIZE_HPP_ */ diff --git a/helpers/d3dcommonsize.hpp b/helpers/d3dcommonsize.hpp index 6619b13a..4a7344bb 100644 --- a/helpers/d3dcommonsize.hpp +++ b/helpers/d3dcommonsize.hpp @@ -30,8 +30,7 @@ * Auxiliary functions to compute the size of array/blob arguments. */ -#ifndef _D3DCOMMONSIZE_HPP_ -#define _D3DCOMMONSIZE_HPP_ +#pragma once /* We purposedly don't include any D3D header, so that this header can be used @@ -186,4 +185,3 @@ _getLockSize(D3DFORMAT Format, UINT Width, UINT Height, INT RowPitch, UINT Depth } -#endif /* _D3DCOMMONSIZE_HPP_ */ diff --git a/helpers/d3dshader.hpp b/helpers/d3dshader.hpp index 169785ef..4acc01dd 100644 --- a/helpers/d3dshader.hpp +++ b/helpers/d3dshader.hpp @@ -23,8 +23,7 @@ * **************************************************************************/ -#ifndef _D3DSHADER_HPP_ -#define _D3DSHADER_HPP_ +#pragma once #include <windows.h> @@ -48,4 +47,3 @@ HRESULT DisassembleShader(const void *pShader, SIZE_T BytecodeLength, IDisassemblyBuffer **ppDisassembly); -#endif /* _D3DSHADER_HPP_ */ diff --git a/helpers/dxgisize.hpp b/helpers/dxgisize.hpp index cbe526fb..584a884b 100644 --- a/helpers/dxgisize.hpp +++ b/helpers/dxgisize.hpp @@ -30,8 +30,7 @@ * Auxiliary functions to compute the size of array/blob arguments. */ -#ifndef _DXGISIZE_HPP_ -#define _DXGISIZE_HPP_ +#pragma once /* We purposedly don't include any D3D header, so that this header can be used @@ -264,4 +263,3 @@ _getMapDesc(IDXGISurface *pResource, DXGI_MAPPED_RECT * pLockedRect, UINT MapFla } -#endif /* _DXGISIZE_HPP_ */ diff --git a/helpers/eglsize.hpp b/helpers/eglsize.hpp index 3da79d12..2025fd46 100644 --- a/helpers/eglsize.hpp +++ b/helpers/eglsize.hpp @@ -29,8 +29,7 @@ /* * Auxiliary functions to compute the size of array/blob arguments. */ -#ifndef _EGLSIZE_HPP_ -#define _EGLSIZE_HPP_ +#pragma once #ifndef _WIN32 @@ -55,5 +54,3 @@ void _EGLImageKHR_free_image_info(struct image_info *info); #endif // !defined(_WIN32) - -#endif diff --git a/helpers/glprofile.hpp b/helpers/glprofile.hpp index b662f3af..554294fb 100644 --- a/helpers/glprofile.hpp +++ b/helpers/glprofile.hpp @@ -29,8 +29,7 @@ */ -#ifndef GLPROFILE_HPP -#define GLPROFILE_HPP +#pragma once #include <ostream> @@ -134,4 +133,3 @@ struct Extensions } /* namespace glprofile */ -#endif // GLPROFILE_HPP diff --git a/helpers/glsize.hpp b/helpers/glsize.hpp index 0b36cc8e..b3ef4abd 100644 --- a/helpers/glsize.hpp +++ b/helpers/glsize.hpp @@ -31,8 +31,7 @@ * Auxiliary functions to compute the size of array/blob arguments, depending. */ -#ifndef _GL_SIZE_HPP_ -#define _GL_SIZE_HPP_ +#pragma once #include <string.h> @@ -1366,4 +1365,3 @@ _glGetDebugMessageLog_length(const Char * string, const GLsizei *lengths, GLuint return size; } -#endif /* _GL_SIZE_HPP_ */ |