Method: Docurium::CParser#parse_macro

Defined in:
lib/docurium/cparser.rb

#parse_macro(d) ⇒ Object

Process #define A(B) macros



90
91
92
93
94
95
# File 'lib/docurium/cparser.rb', line 90

def parse_macro(d)
  if d[:body] =~ /define\s+#{Regexp.quote(d[:name])}\([^\)]*\)[ \t]*(.*)/m
    d[:value] = join_define($1)
  end
  d[:comments] = d[:rawComments].strip
end