Define RCSW_XFOR_EACH1_NOTAIL

Define Documentation

RCSW_XFOR_EACH1_NOTAIL(action, ...)

Call action on the current THING passed in the varargs list.

action needs to have the following signature (as a macro or function):

mymacro(X)

where X is the current THING passed in varargs. Identical to RCSW_XFOR_EACH1 EXCEPT the last item in the varargs list will NOT have the action called on it. This results in:

"foo" "_" "bar" "_" "baz"

generated from

foo,bar,baz
. Using RCSW_XFOR_EACH1 you would get:

"foo" "_" "bar" "_" "baz" "_"