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 Common: Add alignment header 2016-12-06 20:33:53 +01:00
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
ArmCPUDetect.cpp Don't use wrong encoding for paths when opening streams on Windows 2017-12-05 21:23:35 +01:00
ArmCommon.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
Assert.h Assert: Remove unused parameter from DEBUG_ASSERT 2018-03-16 13:01:11 -04:00
Atomic.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
Atomic_GCC.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
Atomic_Win32.h Add includes for building on Windows without PCH 2017-01-23 01:37:41 -08:00
BitField.h Don't delete BitField copy assignment operator on VS 2017-11-13 19:51:11 +01:00
BitField.natvis Correct capitalization of 'Visual Studio' 2015-11-02 17:12:09 +13:00
BitSet.h constexpr added to BitSet.h. conflicts solved 2016-06-25 10:58:53 -03:00
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 Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
CDUtils.h Add missing license headers 2015-05-25 13:11:47 +02:00
CMakeLists.txt traversal: add systemd watchdog support 2018-03-08 06:10:17 +00:00
CPUDetect.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
ChunkFile.h Assert: Uppercase assertion macros 2018-03-14 22:03:12 -04:00
CodeBlock.h Assert: Uppercase assertion macros 2018-03-14 22:03:12 -04:00
ColorUtil.cpp Common: Move byte swapping utilities into their own header 2017-03-03 17:18:18 -05:00
ColorUtil.h ColorUtil: Make decodeCI8image's pal parameter const 2017-01-13 17:07:26 -05:00
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
DebugInterface.h DebugInterface: Rename InsertBLR to Patch 2017-10-05 20:22:16 +02:00
ENetUtil.cpp Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
ENetUtil.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
Event.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
FPURoundMode.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
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 FixedSizeQueue: modernize (std::array, std::move) 2016-06-25 17:39:54 +02:00
Flag.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
GekkoDisassembler.cpp GekkoDisassembler: Correct disassembly of fabs, fnabs, and fneg 2017-12-04 00:02:35 -05:00
GekkoDisassembler.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
GenericCPUDetect.cpp Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
GenericFPURoundMode.cpp Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
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 Common: Support for function-specific instruction set target on x64 2017-01-24 20:04:55 +10:00
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
MD5.cpp DiscIO: Remove C/I/S prefixes from class names 2017-06-06 12:31:59 +02:00
MD5.h Add md5 testing to netplay 2016-07-16 22:48:46 +02:00
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
MemArena.cpp MemArena: Use names that are based on the PID 2017-10-11 17:40:05 +02:00
MemArena.h Support for dynamic BAT modification (dynamic-bat). 2016-09-06 08:43:22 +02:00
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 Common: Namespace Network.h/.cpp 2017-01-17 20:46:48 -05:00
Network.h Common: Namespace Network.h/.cpp 2017-01-17 20:46:48 -05:00
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 Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
PerformanceCounter.h Update license headers to GPLv2+ 2015-05-25 13:22:31 +02:00
Profiler.cpp fix various instances of -1 being assigned to unsigned types 2017-06-07 19:52:07 -07:00
Profiler.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
SCMRevGen.vcxproj SCMRevGen: Use DisableFastUpToDateCheck 2017-06-24 17:34:21 +01:00
SDCardUtil.cpp CommonFuncs: LastStrerrorString added 2017-08-18 20:08:50 +01:00
SDCardUtil.h Set copyright year to when a file was created 2015-05-25 13:22:31 +02:00
SPSCQueue.h Rename Common::FifoQueue to Common::SPSCQueue 2017-08-23 17:00:52 -07:00
ScopeGuard.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
Semaphore.h Common: Add a Semaphore wrapper class 2016-10-01 01:09:12 +10:00
SettingsHandler.cpp SettingsHandler: Fix generated serial numbers 2017-08-08 23:25:40 +08:00
SettingsHandler.h SettingsHandler: Make GenerateSerialNumber static 2017-01-27 10:29:57 -05: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 Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
Timer.cpp Add includes for building on Windows without PCH 2017-01-23 01:37:41 -08:00
Timer.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
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 specify custom brace style to fix unions 2017-01-05 12:55:13 +01:00
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
make_scmrev.h.js scmrev: Add "distributor" option. 2016-06-18 18:31:40 +02:00
scmrev.h.in CMake: use configure_file to generate scmrev.h 2017-02-05 22:26:49 -08:00
x64ABI.cpp x64Emitter: Generify ABI_CallFunction variants 2016-08-31 22:54:47 -04:00
x64ABI.h x64Emitter: Generify ABI_CallFunction variants 2016-08-31 22:54:47 -04:00
x64CPUDetect.cpp Fix missing includes 2017-01-24 03:31:51 +01:00
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 Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
x64Reg.h x64Emitter: Generify ABI_CallFunction variants 2016-08-31 22:54:47 -04:00