HPlogo System Debug Reference Manual > Chapter 10 System Debug Standard Functions

func macbody

MPE documents

Complete PDF
Table of Contents
Index

E0201 Edition 4 ♥
E0300 Edition 3
E0692 Edition 3

Returns a string that is the macro body for the specified macro name.

Syntax



   macbody (macroname)

Formal Declaration



   macbody:str (macroname:str)

Parameters


macroname

The name of the macro whose body is to be returned.

Examples



   $nmdebug > wl macbody("showtime")
   wl time

Display the macro body for the macro command named showtime.

   $nmdebug > wl macbody("min")
   if p1 <= p2 then return p1 else return p2

Display the macro body for the macro function named min.

Limitations, Restrictions


none




func ltos


func mapindex