View Single Post
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 02-27-2015 , 12:34   Re: logdebug.inc - Simple debug logging
Reply With Quote #9

Quote:
Originally Posted by ddhoward View Post
Haven't tested it, but it doesn't seem like g_DebugAdminFlag is ever set to what's specified in InitDebugLog() ?

Also it would be really awesome if it could also accept an override, falling back to the flag if not present.
Good catch. Fixed. Also added an override with the same name as the cvar.

Quote:
Originally Posted by Chdata View Post
Code:
#if !defined NO_DEBUG
    stock bool LogDebug(const char[] format, any ...)
#else
    define LogDebug(%1)
#endif
Something that altogether makes the code not be included into the compilation when it compiles.
I don't think that would be possible with LogDebug's variable number of parameters.
__________________
Dr. McKay is offline