Skip to main content

parse_define

Function parse_define 

Source
pub fn parse_define(body: &str) -> Option<(MacroKey, String)>
Expand description

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.