Skip to main content

Module macros

Module macros 

Source
Expand description

-define table and macro-body expansion helpers.

Re-exports from backhopper_core::erlang_macros so the same macro representation is shared between the xref reader and the compat analyzer.

Structs§

MacroKey

Functions§

expand_value_macro_to_atom
Resolves a value macro to a single lowercase atom when its body is exactly that. Returns None for parameterized macros and bodies that parse as something else.
expand_value_macro_to_mf
Resolves a value macro to a (module, function) pair when its body is mod:fn.
parse_define
Parses the body of a -define(...) attribute. Accepts the raw (NAME, body) form and the inner NAME, body form that handle_attribute-style callers pass after stripping the parens.

Type Aliases§

MacroTable