Method: RDoc::Parser::C#handle_ifdefs_in
- Defined in:
- lib/rdoc/parser/c.rb
#handle_ifdefs_in(body) ⇒ Object
Removes #ifdefs that would otherwise confuse us
987 988 989 |
# File 'lib/rdoc/parser/c.rb', line 987 def handle_ifdefs_in(body) body.gsub(/^#ifdef HAVE_PROTOTYPES.*?#else.*?\n(.*?)#endif.*?\n/m, '\1') end |