Macro
A macro is a shorthand name for a segment of code. Macros were the user defined functions in the early days of BASIC.
You can crate a macro in FreeBASIC using the #define pre-processor keyword.
#define red_text color 4,0
#define white_text color 15,0
red_text
print "This is red"
white_text
print "This is white."
red_text
print "Red again"
sleep
end
| Categories: Programming |
page_revision: 2, last_edited: 1236455272|%e %b %Y, %H:%M %Z (%O ago)