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

Method addNewCommand

src/core/macro.cpp:29–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29void NewCommandMacro::addNewCommand(
30 const wstring& name, const wstring& code, int nbargs) throw(ex_parse) {
31 checkNew(name);
32 _macrocode[name] = code;
33 MacroInfo::addMacro(name, new InflationMacroInfo(_instance, nbargs));
34}
35
36void NewCommandMacro::addNewCommand(
37 const wstring& name,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected