Page 1 of 1

MACROLIST / GETMACRO for CompilerInterface

Posted: Fri Mar 01, 2013 10:02 am
by Danilo

Code: Select all

MACROLIST (since 5.11)

  Request a listing of all macro's known by the compiler.
  Parameters: none
  Response  : The first line contains the number of macro's to return, then all the macro names (including optional arguments),
              each on its own line.
              The output is terminated by a line containing 'OUTPUT<T>COMPLETE'.

GETMACRO<T><Name> (MACRO is already used)

  Request the content of a macro known by the compiler.
  Parameters: The name of the macro.
  Response  : The macro body, line by line. The output is terminated by a line
              containing 'OUTPUT<T>COMPLETE'.
With this addition to the compiler interface, my other wishlist entry would also be possible for the PureBasic IDE: Macros in AutoComplete and resident files