Re: [PHP] Re: Conditional compilation

2008-08-20 Thread Micah Gersten
You can always call a function with a DEBUG flag and execute certain parts if it's set or not. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Robert Cummings wrote: > On Fri, 2008-08-15 at 18:34 -0500, Shawn McKenzie wrote: > >> Herman Gomez wrote: >>

Re: [PHP] Re: Conditional compilation

2008-08-15 Thread Robert Cummings
On Fri, 2008-08-15 at 22:56 -0500, Shawn McKenzie wrote: > Robert Cummings wrote: > > On Fri, 2008-08-15 at 18:34 -0500, Shawn McKenzie wrote: > >> Herman Gomez wrote: > >>> Hi, > >>> > >>> Here is something I used to do in C/C++ to include/exclude automaticaly > >>> all debugging code at compilin

Re: [PHP] Re: Conditional compilation

2008-08-15 Thread Shawn McKenzie
Robert Cummings wrote: On Fri, 2008-08-15 at 18:34 -0500, Shawn McKenzie wrote: Herman Gomez wrote: Hi, Here is something I used to do in C/C++ to include/exclude automaticaly all debugging code at compiling time: #define debug TRUE #ifdef(debug) //debugging code #endif That way I can

Re: [PHP] Re: Conditional compilation

2008-08-15 Thread Robert Cummings
On Fri, 2008-08-15 at 18:34 -0500, Shawn McKenzie wrote: > Herman Gomez wrote: > > Hi, > > > > Here is something I used to do in C/C++ to include/exclude automaticaly > > all debugging code at compiling time: > > > > #define debug TRUE > > #ifdef(debug) > > //debugging code > > #endif > > >

[PHP] Re: Conditional compilation

2008-08-15 Thread Shawn McKenzie
Herman Gomez wrote: Hi, Here is something I used to do in C/C++ to include/exclude automaticaly all debugging code at compiling time: #define debug TRUE #ifdef(debug) //debugging code #endif That way I can include/exclude easily all debugging code in the final compiled code. In PHP I ha