The second arg in the parse_transform
function is the list of options to the compiler. They are both the explicit options in the compile call and some default options added by the compiler. The compiler ignores options it does no recognise so it it possible to pass specific options into the parse_transform
function.
Erlang parse_transform second parameter
-
05-08-2022 - |
Frage
When defining a parse_transform
, the function has two parameters:
parse_transform(FormsIn, Options) -> FormsOut
What is the meaning of the Options
parameter? I'm trying to define additional options for transforming.
Keine korrekte Lösung
Andere Tipps
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow