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

Method isMacro

src/core/macro.cpp:12–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10bool NewCommandMacro::_errIfConflict = true;
11
12bool NewCommandMacro::isMacro(const wstring& name) {
13 auto it = _macrocode.find(name);
14 return (it != _macrocode.end());
15}
16
17void NewCommandMacro::checkNew(const wstring& name) throw(ex_parse) {
18 if (_errIfConflict && isMacro(name)) throw ex_parse(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected