[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Aw: Re: Re: Inline `ifdef style` debugging
From: |
pjodrr |
Subject: |
Aw: Re: Re: Inline `ifdef style` debugging |
Date: |
Wed, 28 Mar 2012 18:25:44 -0000 |
User-agent: |
G2/1.0 |
Am Donnerstag, 11. August 2011 12:40:24 UTC+2 schrieb Roger:
> Just a quick response here, "ifdef style" is C code not compiled into the
> compiled program if it is not defined or chosen to be enabled. This in turn,
> prevents the CPU from wasting cycles testing if/then statements, etc...
yes, I understood that, you want some kind of preprocessing. With the
given examples the test for $DEBUG is done only once in the runtime of
the script. If you want to avoid that as well, you need two different
scripts, one with debugging enabled and one without. These scripts
can be the result of a preprocessing of course.
regards