mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-01-26 00:55:30 +00:00
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__. |
||
|---|---|---|
| .. | ||
| BoundingBox.cpp | ||
| BoundingBox.h | ||
| CMakeLists.txt | ||
| D3D.vcxproj | ||
| D3D.vcxproj.filters | ||
| D3DBase.cpp | ||
| D3DBase.h | ||
| D3DBlob.cpp | ||
| D3DBlob.h | ||
| D3DShader.cpp | ||
| D3DShader.h | ||
| D3DState.cpp | ||
| D3DState.h | ||
| D3DTexture.cpp | ||
| D3DTexture.h | ||
| D3DUtil.cpp | ||
| D3DUtil.h | ||
| DXPipeline.cpp | ||
| DXPipeline.h | ||
| DXShader.cpp | ||
| DXShader.h | ||
| DXTexture.cpp | ||
| DXTexture.h | ||
| FramebufferManager.cpp | ||
| FramebufferManager.h | ||
| GeometryShaderCache.cpp | ||
| GeometryShaderCache.h | ||
| main.cpp | ||
| NativeVertexFormat.cpp | ||
| PerfQuery.cpp | ||
| PerfQuery.h | ||
| PixelShaderCache.cpp | ||
| PixelShaderCache.h | ||
| PSTextureEncoder.cpp | ||
| PSTextureEncoder.h | ||
| Render.cpp | ||
| Render.h | ||
| TextureCache.cpp | ||
| TextureCache.h | ||
| VertexManager.cpp | ||
| VertexManager.h | ||
| VertexShaderCache.cpp | ||
| VertexShaderCache.h | ||
| VideoBackend.h | ||