dolphin/Source/Core/Common
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
..
Compat Android: Fix NDK r16b2 build 2017-11-07 11:02:27 -05:00
Config Config: Handle unknown system strings better 2017-11-26 18:24:01 +01:00
Crypto msvc: disable unused symbol warning in Core/Common/Crypto/ec.cpp 2017-06-07 18:44:03 -07:00
GL OGL: Move primitive restart enable logic to GLUtil 2018-03-10 16:11:20 +10:00
Logging Remove NonCopyable 2017-08-22 16:40:34 +02:00
Align.h
Analytics.cpp Common: Add HttpRequest to simplify HTTP requests 2017-06-13 12:52:31 +02:00
Analytics.h Rename Common::FifoQueue to Common::SPSCQueue 2017-08-23 17:00:52 -07:00
Arm64Emitter.cpp Use __func__ instead of __FUNCTION__ where applicable 2018-03-16 13:41:53 -04:00
Arm64Emitter.h Assert: Uppercase assertion macros 2018-03-14 22:03:12 -04:00
ArmCommon.h
ArmCPUDetect.cpp Don't use wrong encoding for paths when opening streams on Windows 2017-12-05 21:23:35 +01:00
Assert.h Assert: Remove unused parameter from DEBUG_ASSERT 2018-03-16 13:01:11 -04:00
Atomic_GCC.h
Atomic_Win32.h
Atomic.h
BitField.h Don't delete BitField copy assignment operator on VS 2017-11-13 19:51:11 +01:00
BitField.natvis
BitSet.h
BitUtils.h Add function testing whether a bitmask is valid. 2017-06-22 20:22:53 +02:00
BlockingLoop.h BlockingLoop: fix unhandled enum value warning 2017-06-26 23:34:33 -07:00
CDUtils.cpp
CDUtils.h
ChunkFile.h Assert: Uppercase assertion macros 2018-03-14 22:03:12 -04:00
CMakeLists.txt traversal: add systemd watchdog support 2018-03-08 06:10:17 +00:00
CodeBlock.h Assert: Uppercase assertion macros 2018-03-14 22:03:12 -04:00
ColorUtil.cpp
ColorUtil.h
Common.h Common: Move version strings to their own header 2017-09-09 19:28:10 -04:00
Common.vcxproj Merge pull request #5973 from ligfx/renamefifoqueue 2017-11-19 13:51:22 +01:00
Common.vcxproj.filters Merge pull request #5973 from ligfx/renamefifoqueue 2017-11-19 13:51:22 +01:00
CommonFuncs.cpp Handle both the XSI and GNU versions of strerror_r 2017-12-18 22:09:02 +01:00
CommonFuncs.h CommonFuncs: LastStrerrorString added 2017-08-18 20:08:50 +01:00
CommonPaths.h Don't expose SYSDATA_DIR in a header 2017-12-24 17:13:04 +01:00
CommonTypes.h CommonTypes: Qualify standard integral types in typedefs with std:: 2017-08-20 19:34:52 -04:00
CompatPatches.cpp [windows]: Apply compatibility patches to problematic gamepad vibration drivers. 2017-06-15 21:21:01 -07:00
CPUDetect.h
DebugInterface.h DebugInterface: Rename InsertBLR to Patch 2017-10-05 20:22:16 +02:00
ENetUtil.cpp
ENetUtil.h
Event.h
File.cpp File: Make GetSize() a const member function 2017-08-06 07:57:43 -04:00
File.h Remove NonCopyable 2017-08-22 16:40:34 +02:00
FileSearch.cpp Fix DoFileSearch for non-ASCII extensions on Windows 2017-06-28 09:50:02 +02:00
FileSearch.h replace DoFileSearch with optimized version 2017-06-23 17:25:53 -07:00
FileUtil.cpp Assert: Uppercase assertion macros 2018-03-14 22:03:12 -04:00
FileUtil.h Android: Extract Sys to a different folder than the User folder 2017-12-26 09:53:32 +01:00
FixedSizeQueue.h
Flag.h
FPURoundMode.h
GekkoDisassembler.cpp GekkoDisassembler: Correct disassembly of fabs, fnabs, and fneg 2017-12-04 00:02:35 -05:00
GekkoDisassembler.h
GenericCPUDetect.cpp
GenericFPURoundMode.cpp
Hash.cpp CustomTexture: Drop old texture format. 2018-01-20 17:08:47 +01:00
Hash.h CustomTexture: Drop old texture format. 2018-01-20 17:08:47 +01:00
HttpRequest.cpp HttpRequest: Use std::chrono for indicating time periods 2017-06-18 15:48:37 -04:00
HttpRequest.h HttpRequest: Use std::chrono for indicating time periods 2017-06-18 15:48:37 -04:00
IniFile.cpp Replace StringFromInt with std::to_string 2017-07-05 13:49:33 +02:00
IniFile.h IniFile: Provide an rvalue reference overload for SetLines 2017-03-22 18:49:13 -04:00
Intrinsics.h
JitRegister.cpp JIT: Don't always look up symbols for blocks 2017-09-10 11:42:12 +02:00
JitRegister.h JIT: Don't always look up symbols for blocks 2017-09-10 11:42:12 +02:00
Lazy.h DiscIO: Use Common::Lazy for loading filesystems 2017-09-15 18:57:05 +02:00
LdrWatcher.cpp [windows]: Apply compatibility patches to problematic gamepad vibration drivers. 2017-06-15 21:21:01 -07:00
LdrWatcher.h [windows]: Apply compatibility patches to problematic gamepad vibration drivers. 2017-06-15 21:21:01 -07:00
LinearDiskCache.h Don't use wrong encoding for paths when opening streams on Windows 2017-12-05 21:23:35 +01:00
make_scmrev.h.js
MathUtil.cpp MathUtil: References can be const 2017-04-12 06:15:18 +01:00
MathUtil.h fix various instances of -1 being assigned to unsigned types 2017-06-07 19:52:07 -07:00
MD5.cpp DiscIO: Remove C/I/S prefixes from class names 2017-06-06 12:31:59 +02:00
MD5.h
MemArena.cpp MemArena: Use names that are based on the PID 2017-10-11 17:40:05 +02:00
MemArena.h
MemoryUtil.cpp CommonFuncs: LastStrerrorString added 2017-08-18 20:08:50 +01:00
MemoryUtil.h remove MemUsage, and therefor psapi dependency 2017-06-08 22:25:46 -07:00
MsgHandler.cpp MsgHandler: small cleanup 2017-08-03 13:29:59 -07:00
MsgHandler.h MsgHandler: small cleanup 2017-08-03 13:29:59 -07:00
NandPaths.cpp WFS/NAND: Better handle GID. 2017-08-15 22:29:10 +02:00
NandPaths.h WFS/NAND: Better handle GID. 2017-08-15 22:29:10 +02:00
Network.cpp
Network.h
PcapFile.cpp Move IOFile to a separate file 2017-06-15 21:33:50 +02:00
PcapFile.h Remove NonCopyable 2017-08-22 16:40:34 +02:00
PerformanceCounter.cpp
PerformanceCounter.h
Profiler.cpp fix various instances of -1 being assigned to unsigned types 2017-06-07 19:52:07 -07:00
Profiler.h
scmrev.h.in
SCMRevGen.vcxproj SCMRevGen: Use DisableFastUpToDateCheck 2017-06-24 17:34:21 +01:00
ScopeGuard.h
SDCardUtil.cpp CommonFuncs: LastStrerrorString added 2017-08-18 20:08:50 +01:00
SDCardUtil.h
Semaphore.h
SettingsHandler.cpp SettingsHandler: Fix generated serial numbers 2017-08-08 23:25:40 +08:00
SettingsHandler.h
SPSCQueue.h Rename Common::FifoQueue to Common::SPSCQueue 2017-08-23 17:00:52 -07:00
StringUtil.cpp Modified StringUtil to change UTF16ToUTF8 to use a wstring_convert and codecvt_utf8<wchar_t> to convert a UTF16 wstring to a UTF8 string. 2018-01-11 21:49:25 +00:00
StringUtil.h StringUtil: Fix Windows encoding in ThousandSeparate 2018-03-10 12:13:30 +01:00
Swap.h Include <endian.h> for byte swap macros on OpenBSD 2018-02-26 00:07:05 +02:00
SymbolDB.cpp SymbolDB: Blank stripped symbol name fixed 2017-08-16 04:07:19 +01:00
SymbolDB.h SymbolDB: Blank stripped symbol name fixed 2017-08-16 04:07:19 +01:00
SysConf.cpp Assert: Uppercase assertion macros 2018-03-14 22:03:12 -04:00
SysConf.h Assert: Uppercase assertion macros 2018-03-14 22:03:12 -04:00
Thread.cpp fix various instances of -1 being assigned to unsigned types 2017-06-07 19:52:07 -07:00
Thread.h
Timer.cpp
Timer.h
TraversalClient.cpp Common: Move version strings to their own header 2017-09-09 19:28:10 -04:00
TraversalClient.h Common: Move version strings to their own header 2017-09-09 19:28:10 -04:00
TraversalProto.h
TraversalServer.cpp traversal: add systemd watchdog support 2018-03-08 06:10:17 +00:00
UPnP.cpp UPnP: use value-initialization instead of std::memset 2017-08-13 18:50:53 -07:00
UPnP.h Common: extract UPnP namespace from NetPlayServer 2017-08-13 18:50:51 -07:00
Version.cpp Common: Move version strings to their own header 2017-09-09 19:28:10 -04:00
Version.h Common: Move version strings to their own header 2017-09-09 19:28:10 -04:00
WorkQueueThread.h GameTracker: use WorkQueueThread 2017-08-20 14:40:56 -07:00
x64ABI.cpp
x64ABI.h
x64CPUDetect.cpp
x64Emitter.cpp Assert: Remove unused parameter from DEBUG_ASSERT 2018-03-16 13:01:11 -04:00
x64Emitter.h Assert: Remove unused parameter from DEBUG_ASSERT 2018-03-16 13:01:11 -04:00
x64FPURoundMode.cpp
x64Reg.h