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§
Functions§
- expand_
value_ macro_ to_ atom - Resolves a value macro to a single lowercase atom when its body is
exactly that. Returns
Nonefor 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 ismod:fn. - parse_
define - Parses the body of a
-define(...)attribute. Accepts the raw(NAME, body)form and the innerNAME, bodyform thathandle_attribute-style callers pass after stripping the parens.