Daniel's stuff

RSS

Using GNU m4 for basic stuff

Dec 24 2021


How do I use ` normally??

define(&#96;LQ',&#96;changequote(<,>)&#96;dnl'
changequote&#96;'')

Use LQ() to use it.

How do I define stuff?

Via cli, similar to cc. -D FOO value

define(MENU_ICON, &#96;assets/menu.png')

How do if ifdef?

ifdef(&#96;DESKTOP', &#96;
    define(MENU_ICON, &#96;assets/menu.png')
    define(CLOSE_ICON, &#96;assets/back.png')
')

How do I include?

include(main.css)

So should I use m4?

No. Don't walk, run away from m4. It's trash.

Back