MCPcopy Create free account
hub / github.com/NanoMichael/MicroTeX / preprocessNewCmd

Method preprocessNewCmd

src/core/parser.cpp:709–716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

707}
708
709void 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
718void TeXParser::inflateNewCmd(wstring& cmd, vector<wstring>& args, int& pos) throw(ex_parse) {
719 MacroInfo* const mac = MacroInfo::_commands[cmd];

Callers

nothing calls this directly

Calls 1

invokeMethod · 0.45

Tested by

no test coverage detected