Raised This Month: $51 Target: $400
 12% 

Help with define some NULL macross.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 05-27-2017 , 09:23   Help with define some NULL macross.
Reply With Quote #1

Sorry for my stupid tittle , so the problem is with my debug.inc file, i've tried to create a checcks with the name DEBUG_OFF , if the DEBUG_OFF is definited in the plugin to call some empty functions insteand of the debug stocks, here's the code i've used inside of debug.inc :
Code:
#if defined DEBUG_OFF  #if DEBUG_OFF > 0     #define debug_log(%1)   debug_null(%1)     #define debug_init(%1)  debug_null(%1)     #define debug_fail(%1)  debug_null(%1)     debug_null(){}         #endinput  #endif  #else     #define debug_log(%1)   func_debug_log(%1)     #define debug_init(%1)  func_debug_init(%1)     #define debug_fail(%1)  func_debug_fail(%1) #endif


So .. if debug_off is definited and is more than zero i define our stocks with an empty functions ... if is not even definited we define debug_ macross adressing them with the real stocks.

The problem is that even if i define in the plugin DEBUG_OFF 0/1 or not definining , the plugin will call directly the stoks, i've tried in many ways, someone know the problem ?

Last edited by Craxor; 05-27-2017 at 09:30.
Craxor is offline
Send a message via ICQ to Craxor
Old 05-27-2017, 09:35
Craxor
This message has been deleted by Craxor. Reason: mdea.
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 05-27-2017 , 09:50   Re: Help with define some NULL macross.
Reply With Quote #2

I will do inside of the source file until someone reveal the solution or i solve by myself.
Craxor is offline
Send a message via ICQ to Craxor
Reply



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 00:08.


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