[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
m4_foreach_w and "options"
From: |
Vincent Torri |
Subject: |
m4_foreach_w and "options" |
Date: |
Sun, 1 Jul 2012 12:11:53 +0200 (CEST) |
Hey
usually, when we want to write an m4 macro that will be used like that:
my_macro([foo1 foo2])
we can use m4_foreach_w:
AC_DEFUN([my_macro],
[
m4_foreach_w([fct], [$2], [my_check(m4_defn([fct]))])
])
But I would like to write am m4 macro that would be used like that:
my_macro([foo1 foo2], [bar1 bar2])
and I would like to "associate" bar1 to foo1 and bar2 to foo2 (bar* would
options for the macros called by m4_foreach_w() in my_check (see above)),
that is
for foo1, my_check would be called with bar1
for foo2, my_check would be called with bar2
is it possible ?
thank you
Vincent Torri
- m4_foreach_w and "options",
Vincent Torri <=