m4-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Simple method of including a file that bypasses macro expansion


From: John Allsup (M4)
Subject: Simple method of including a file that bypasses macro expansion
Date: Sun, 17 Jul 2011 08:15:04 +0100 (BST)

Hi,

 

I am relatively new to m4, but can't seem to find an equivalent to include that bypasses macro expansion.

 

Suppose file 'a' contains

  hello world

and file 'b' contains

  goodbye world

and in my m4 I have defined

  define(world,and).

I a macro which I will call 'oinclude' such that

  include(a) oinclude(b)

expands to

  hello and goodbye world.

Is there a simple method?

 

Thanks,

 

John 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]