Merge pull request #6447 from lioncash/func

Use __func__ instead of __FUNCTION__ where applicable
This commit is contained in:
Léo Lam
2018-03-16 18:48:11 +01:00
committed by GitHub
3 changed files with 83 additions and 85 deletions
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -35,7 +35,7 @@ namespace DX11
#define CHECK(cond, Message, ...) \
if (!(cond)) \
{ \
PanicAlert(__FUNCTION__ " failed in %s at line %d: " Message, __FILE__, __LINE__, \
PanicAlert("%s failed in %s at line %d: " Message, __func__, __FILE__, __LINE__, \
__VA_ARGS__); \
}
@@ -40,6 +40,6 @@ void UnloadVulkanLibrary();
const char* VkResultToString(VkResult res);
void LogVulkanResult(int level, const char* func_name, VkResult res, const char* msg, ...);
#define LOG_VULKAN_ERROR(res, ...) LogVulkanResult(2, __FUNCTION__, res, __VA_ARGS__)
#define LOG_VULKAN_ERROR(res, ...) LogVulkanResult(2, __func__, res, __VA_ARGS__)
} // namespace Vulkan