View Single Post
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 02-27-2015 , 10:39   Re: logdebug.inc - Simple debug logging
Reply With Quote #8

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.
PHP Code:
// define NO_DEBUG before including this file to completely disable all debugging
#if defined NO_DEBUG
 
stock void InitDebugLog(const char[] convarName, const char[] debugTagint adminFlag) { }
 
stock bool LogDebug(const char[] formatany ...) { return false; }
 
#endinput
#endif 
That is already a feature.
__________________
ddhoward is offline