Add documentation and/or comments.

Co-authored-by: Leonardo <leo@ethereum.org>
This commit is contained in:
Bhargava Shastry
2021-01-26 15:48:42 +01:00
co-authored by Leonardo
parent d7e3d3f75f
commit f5e0faaa37
3 changed files with 46 additions and 14 deletions
+14
View File
@@ -25,6 +25,20 @@
* Alphabetically sorted Generator types.
* SEP must appear between two elements and ENDSEP must
* appear after the last element.
*
* This macro applies another macro (MACRO) that is
* passed as input to this macro on the list of Generator
* types. Example that uses forward declaration:
*
* #define MACRO(G) class G;
* #define SEMICOLON() ;
*
* GENERATORLIST(MACRO, SEMICOLON(), SEMICOLON())
*
* produces
*
* class PragmaGenerator;class SourceUnitGenerator;class TestCaseGenerator;
*
*/
#define GENERATORLIST(MACRO, SEP, ENDSEP) \
MACRO(PragmaGenerator) SEP \