M4kwargs is a macro package that implements keyword arguments for m4 macros. A keyword argument consists of keyword name and value, separated with a single equals sign. Example of a macro call with single positional and two keyword arguments:
The implementation relies on the patsubst builtin and has been tested on GNU m4 and FreeBSD m4.