Simple convenience macro for creating entries in a string parser function dispatch table.
%1 is the dispatch callback function for a string.
%2+ is the string for the for the specified callback function. The last item in the table must have a NULL string. It is a catch-all function and will be called when no other entries are matched.
Example:
StrFuncTable OPT_A, "/A" ; When "/A" or "/a", call OPT_A StrFuncTable OPT_B, "/B" ; When "/B" or "/b", call OPT_B StrFuncTable OPT_OTHER, NULL ; for everything else, call catch-all OPT_NONE
It would be no different than entering it manually like this:
dw OPT_A db "/A", 0 dw OPT_B db "/B", 0 dw OPT_OTHER db 0
See also: StrFuncParser, StrWordTable and StrByteTable.