dolphin/Source/Core/VideoBackends/D3D
Lioncash 7926a0c814 Use __func__ instead of __FUNCTION__ where applicable
This replaces usages of the non-standard __FUNCTION__ macro with the standard
mandated __func__ identifier.

__FUNCTION__ is a preprocessor definition that is provided as an
extension by compilers. This was the only convenient option to rely on
pre-C++11. However, C++11 and greater mandate the predefined identifier
__func__, which lets us accomplish the same thing.

The difference between the two, however, is that __func__ isn't a
preprocessor macro, it's an actual identifier that exists at function
scope. The C++17 draft standard (N4659) at section [dcl.fct.def.general]
paragraph 8 states:

"
The function-local predefined variable __func__ is defined as if a
definition of the form

static const char __func__[] = "function-name ";

had been provided, where function-name is an implementation-defined
string. It is unspecified whether such
a variable has an address distinct from that of any other object in the
program.
"

Thankfully, we don't do any macro or string concatenation with __FUNCTION__
that can't be modified to use __func__.
2018-03-16 13:41:53 -04:00
..
BoundingBox.cpp Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
BoundingBox.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
CMakeLists.txt VideoBackends: Add AbstractShader and AbstractPipeline classes 2018-02-22 22:02:34 +10:00
D3D.vcxproj VideoBackends: Add AbstractShader and AbstractPipeline classes 2018-02-22 22:02:34 +10:00
D3D.vcxproj.filters VideoBackends: Add AbstractShader and AbstractPipeline classes 2018-02-22 22:02:34 +10:00
D3DBase.cpp D3D: Support compiling compute shaders 2018-02-22 19:11:25 +10:00
D3DBase.h Use __func__ instead of __FUNCTION__ where applicable 2018-03-16 13:41:53 -04:00
D3DBlob.cpp Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
D3DBlob.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
D3DShader.cpp D3D: Support compiling compute shaders 2018-02-22 19:11:25 +10:00
D3DShader.h D3D: Support compiling compute shaders 2018-02-22 19:11:25 +10:00
D3DState.cpp D3D: Make StateCache thread safe 2018-03-10 15:56:21 +10:00
D3DState.h D3D: Make StateCache thread safe 2018-03-10 15:56:21 +10:00
D3DTexture.cpp D3DTexture: in-class initialize class members where applicable 2017-09-03 13:08:06 -04:00
D3DTexture.h D3DTexture: Remove unused bindflags D3DTexture2D member variable 2017-09-03 13:12:26 -04:00
D3DUtil.cpp Assert: Remove unused parameter from DEBUG_ASSERT 2018-03-16 13:01:11 -04:00
D3DUtil.h D3DUtil: Make file-scope variables internally linked where applicable 2017-11-19 12:12:39 -05:00
DXPipeline.cpp Assert: Uppercase assertion macros 2018-03-14 22:03:12 -04:00
DXPipeline.h VideoBackends: Add AbstractShader and AbstractPipeline classes 2018-02-22 22:02:34 +10:00
DXShader.cpp Assert: Remove unused parameter from DEBUG_ASSERT 2018-03-16 13:01:11 -04:00
DXShader.h VideoBackends: Add AbstractShader and AbstractPipeline classes 2018-02-22 22:02:34 +10:00
DXTexture.cpp Assert: Remove unused parameter from DEBUG_ASSERT 2018-03-16 13:01:11 -04:00
DXTexture.h VideoCommon: Add support for Abstract Framebuffers 2018-03-02 20:20:48 +10:00
FramebufferManager.cpp VideoBackends: Restore the framebuffer as part of the API state 2018-03-01 17:31:24 +10:00
FramebufferManager.h Remove old XFB logic 2017-11-17 22:11:29 -06:00
GeometryShaderCache.cpp Move shader caches to VideoCommon 2018-03-10 15:56:30 +10:00
GeometryShaderCache.h Move shader caches to VideoCommon 2018-03-10 15:56:30 +10:00
main.cpp OGL: Re-implement async shader compiling 2018-03-10 15:56:34 +10:00
NativeVertexFormat.cpp D3D: Make NativeVertexFormat thread safe 2018-03-10 15:56:24 +10:00
PerfQuery.cpp Improve PerfQuery accuracy 2016-07-04 18:54:49 +10:00
PerfQuery.h Fix D3D12 headers missing includes. 2016-06-24 11:14:10 +00:00
PixelShaderCache.cpp Move shader caches to VideoCommon 2018-03-10 15:56:30 +10:00
PixelShaderCache.h Move shader caches to VideoCommon 2018-03-10 15:56:30 +10:00
PSTextureEncoder.cpp Assert: Uppercase assertion macros 2018-03-14 22:03:12 -04:00
PSTextureEncoder.h D3D: Use new readback methods for EFB2RAM 2017-11-22 18:47:04 +10:00
Render.cpp Assert: Remove unused parameter from DEBUG_ASSERT 2018-03-16 13:01:11 -04:00
Render.h Move shader caches to VideoCommon 2018-03-10 15:56:30 +10:00
TextureCache.cpp VideoBackends: Restore the framebuffer as part of the API state 2018-03-01 17:31:24 +10:00
TextureCache.h VideoCommon: Drop now unused efb2tex matrix generation. 2017-12-06 09:30:03 +01:00
VertexManager.cpp Move shader caches to VideoCommon 2018-03-10 15:56:30 +10:00
VertexManager.h D3D: Make NativeVertexFormat thread safe 2018-03-10 15:56:24 +10:00
VertexShaderCache.cpp Move shader caches to VideoCommon 2018-03-10 15:56:30 +10:00
VertexShaderCache.h Move shader caches to VideoCommon 2018-03-10 15:56:30 +10:00
VideoBackend.h VideoBackend: Remove PeekMessages method 2018-01-27 13:53:55 +10:00