Raised This Month: $ Target: $400
 0% 

logdebug.inc - Simple debug logging


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode