From 5bd85cf54dd7110abf4fc771e82b30b66622f7f5 Mon Sep 17 00:00:00 2001 From: DarthArgus Date: Wed, 13 Jul 2016 23:29:40 +0000 Subject: [PATCH] just slap an inline for the chat debug printing function...@devcodex if this is nasty please let me know...but clang was griping about it in release builds --- .../ChatAPI/projects/ChatAPI/ChatEnum.h | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/external/3rd/library/soePlatform/ChatAPI/projects/ChatAPI/ChatEnum.h b/external/3rd/library/soePlatform/ChatAPI/projects/ChatAPI/ChatEnum.h index b17ab132..75534928 100755 --- a/external/3rd/library/soePlatform/ChatAPI/projects/ChatAPI/ChatEnum.h +++ b/external/3rd/library/soePlatform/ChatAPI/projects/ChatAPI/ChatEnum.h @@ -6,24 +6,15 @@ #pragma warning ( disable : 4786 ) -// Defining _chatdebug_ +inline static void _chatdebug_(const char *fmt, ...) +{ #ifdef _DEBUG -#ifdef WIN32 -#define _chatdebug_ ::printf -#else -#define _chatdebug_ ::printf + va_list args; + va_start(args, fmt); + printf(fmt, args); + va_end(args); #endif -#endif - -#ifndef _DEBUG -#ifdef WIN32 -#define _chatdebug_ -#else -#define _chatdebug_ -#endif -#endif -// END: "Defining _chatdebug_" - +} // Use AVATAR_PRIORITY_NOFORCELOGOUT on RequestAvatarLogin if you want to override the // "last login wins" rule, switching that given avatar's session to use "first login wins"