mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-02-14 02:15:58 -07: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__. |
||
|---|---|---|
| .. | ||
| Compat | ||
| Config | ||
| Crypto | ||
| GL | ||
| Logging | ||
| Align.h | ||
| Analytics.cpp | ||
| Analytics.h | ||
| Arm64Emitter.cpp | ||
| Arm64Emitter.h | ||
| ArmCommon.h | ||
| ArmCPUDetect.cpp | ||
| Assert.h | ||
| Atomic_GCC.h | ||
| Atomic_Win32.h | ||
| Atomic.h | ||
| BitField.h | ||
| BitField.natvis | ||
| BitSet.h | ||
| BitUtils.h | ||
| BlockingLoop.h | ||
| CDUtils.cpp | ||
| CDUtils.h | ||
| ChunkFile.h | ||
| CMakeLists.txt | ||
| CodeBlock.h | ||
| ColorUtil.cpp | ||
| ColorUtil.h | ||
| Common.h | ||
| Common.vcxproj | ||
| Common.vcxproj.filters | ||
| CommonFuncs.cpp | ||
| CommonFuncs.h | ||
| CommonPaths.h | ||
| CommonTypes.h | ||
| CompatPatches.cpp | ||
| CPUDetect.h | ||
| DebugInterface.h | ||
| ENetUtil.cpp | ||
| ENetUtil.h | ||
| Event.h | ||
| File.cpp | ||
| File.h | ||
| FileSearch.cpp | ||
| FileSearch.h | ||
| FileUtil.cpp | ||
| FileUtil.h | ||
| FixedSizeQueue.h | ||
| Flag.h | ||
| FPURoundMode.h | ||
| GekkoDisassembler.cpp | ||
| GekkoDisassembler.h | ||
| GenericCPUDetect.cpp | ||
| GenericFPURoundMode.cpp | ||
| Hash.cpp | ||
| Hash.h | ||
| HttpRequest.cpp | ||
| HttpRequest.h | ||
| IniFile.cpp | ||
| IniFile.h | ||
| Intrinsics.h | ||
| JitRegister.cpp | ||
| JitRegister.h | ||
| Lazy.h | ||
| LdrWatcher.cpp | ||
| LdrWatcher.h | ||
| LinearDiskCache.h | ||
| make_scmrev.h.js | ||
| MathUtil.cpp | ||
| MathUtil.h | ||
| MD5.cpp | ||
| MD5.h | ||
| MemArena.cpp | ||
| MemArena.h | ||
| MemoryUtil.cpp | ||
| MemoryUtil.h | ||
| MsgHandler.cpp | ||
| MsgHandler.h | ||
| NandPaths.cpp | ||
| NandPaths.h | ||
| Network.cpp | ||
| Network.h | ||
| PcapFile.cpp | ||
| PcapFile.h | ||
| PerformanceCounter.cpp | ||
| PerformanceCounter.h | ||
| Profiler.cpp | ||
| Profiler.h | ||
| scmrev.h.in | ||
| SCMRevGen.vcxproj | ||
| ScopeGuard.h | ||
| SDCardUtil.cpp | ||
| SDCardUtil.h | ||
| Semaphore.h | ||
| SettingsHandler.cpp | ||
| SettingsHandler.h | ||
| SPSCQueue.h | ||
| StringUtil.cpp | ||
| StringUtil.h | ||
| Swap.h | ||
| SymbolDB.cpp | ||
| SymbolDB.h | ||
| SysConf.cpp | ||
| SysConf.h | ||
| Thread.cpp | ||
| Thread.h | ||
| Timer.cpp | ||
| Timer.h | ||
| TraversalClient.cpp | ||
| TraversalClient.h | ||
| TraversalProto.h | ||
| TraversalServer.cpp | ||
| UPnP.cpp | ||
| UPnP.h | ||
| Version.cpp | ||
| Version.h | ||
| WorkQueueThread.h | ||
| x64ABI.cpp | ||
| x64ABI.h | ||
| x64CPUDetect.cpp | ||
| x64Emitter.cpp | ||
| x64Emitter.h | ||
| x64FPURoundMode.cpp | ||
| x64Reg.h | ||