| 707 | } |
| 708 | |
| 709 | void TeXParser::preprocessNewCmd(wstring& cmd, vector<wstring>& args, int& pos) throw(ex_parse) { |
| 710 | MacroInfo* const mac = MacroInfo::_commands[cmd]; |
| 711 | getOptsArgs(mac->_nbArgs, mac->_posOpts, args); |
| 712 | mac->invoke(*this, args); |
| 713 | _parseString.erase(pos, _pos - pos); |
| 714 | _len = _parseString.length(); |
| 715 | _pos = pos; |
| 716 | } |
| 717 | |
| 718 | void TeXParser::inflateNewCmd(wstring& cmd, vector<wstring>& args, int& pos) throw(ex_parse) { |
| 719 | MacroInfo* const mac = MacroInfo::_commands[cmd]; |