_define - Anobium/Great-Cow-BASIC-Help GitHub Wiki
Syntax:
#define Find Replace
Explanation:
#define
will search through the program for Find
, and replace it
with the value given for Replace
.
The compiler replaces a constant with the value, it then searches the line for constants again and will make any more replacements needed. It will do this up to 100 times on a line, then it will stop replacing and show an error. The limitation of 100 iteractions is to prevent something like "#define Const_A Const_B" and then "#define Const_B Const_A" from causing an infinite loop in the compiler.
See Also Defines