Quote:
Originally Posted by Chdata
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[] debugTag, int adminFlag) { }
stock bool LogDebug(const char[] format, any ...) { return false; }
#endinput
#endif
That is already a feature.
__________________