September 2017
Beginner to intermediate
290 pages
6h 58m
English
In certain cases, we do not know how many parameters would be passed to the same macro instruction used in different places in our code, and FASM provides a great and easy solution for such a problem--support for variadic macro instructions. The term variadic means that an operator, a procedure, or a macro can take a varying number of operands/parameters.
Syntactically, variadic macro instructions are very simple. We begin with the macro keyword, then the name of the macro followed by a comma-separated list of parameters, if any. The variadic portion of the list of parameters is enclosed in square brackets. For example, should we have a macro instruction that expands to the printf() function or invokes it, and ...
Read now
Unlock full access