MACROLIST / GETMACRO for CompilerInterface

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

MACROLIST / GETMACRO for CompilerInterface

Post 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