Re: Debug Block?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Jeremy Cowgar wrote:
> 
> Daryl Border wrote:
> >  
> > I would like to point out that this is actually a specialized form of
> > conditional
> > compilation.
> > A general conditional compilation system would provide this behavior and a
> > lot
> > more.
> 
> Can you give an example of what you are speaking of? Are you talking in
> regards
> to a C like preprocessor?
> 
> #ifdef DEBUG
> puts(1, "Hello World\n")
> #endif
> #ifdef WINDOWS
> puts(1, "Windows\n")
> #endif
> 
> ?
> 
> --
> Jeremy Cowgar
> <a href="http://jeremy.cowgar.com">http://jeremy.cowgar.com</a>

You've got it. The with debug clause is a compiler directive telling the parser
to treat any line starting with . as a comment. The #ifdef WINDOWS clause does
the same thing to lines up to the #endif, if WINDOWS is not defined.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu