Re: Process only sections of a file? (newbie)

Gary <[email protected]>
Newsgroups gmane.comp.gnu.m4.general
Message-ID <[email protected]>
Gary wrote:
> To make sure I don't include the same code twice, each chunk's
> file uses a typical C/C++ -like guard
[snip]
> the equivalent m4 would be something like:
> ,----
> | ifdef(`FOO', `',
> | define(`FOO')
> | /*
> | php code
> | */
> | )
> `----
>
> (I think! although actually it doesn't seem to work if the define line
> is included, so presumably I am going something wrong there)

Okay, well I figured that bit out -
,----
| ifdef(`FOO', `',
| /*
| php code
| */
| )
| define(`FOO')
`----
seems to work. although I confess I don't know why the previous version
doesn't.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.