Re: Debug Block?
- Posted by Daryl Border <Darylb5 at aol.?om> May 12, 2008
- 694 views
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.