|
![](/i/fill.gif) |
Randall Sawyer wrote:
> Would it be helpful to establish a way to view the 'usage text' of a macro
> without having to load its entire include file into an editor?
>
> One solution would be to require a
>
> #declare foo_usage = 'string literal'
> for each
> #macro foo( 'parameters' )
A better solution (and avoiding the 256 character limit) is a simple
#declare help = true; // uncomment this to print help text
// #declare help = false; // uncomment this to suppress help text
in the main file. Then, in your include files, do a
#if (help=true)
#debug "Macro: make_widgets(PIPES, CHRONOTRONS) by Chris O'Donnell.\n"
#debug "Usage:\n"
#debug " PIPES should be a vector representing the color of the
widgets.\n"
#debug " CHRONOTRONS should be a string literal to be printed in the
uppper left corner of the screen.\n"
#end
Or something along these lines, customized for each macro :)
...Chambers
Post a reply to this message
|
![](/i/fill.gif) |