TenjintShell.define_macro

TenjintShell.define_macro(name, themacro)

Define a new macro

Parameters
  • name (str) – The name of the macro.

  • themacro (str or Macro) – The action to do upon invoking the macro. If a string, a new Macro object is created by passing the string to it.