C (154/257)

From:
Date:17 Feb 2001 at 20:00:58
Subject:"#define" for code

Hi Everybody,

Ok, I know that using #define var_name xxx replaces all the
"var_name"s in the code with xxx before compiling (so it's faster then
using a variable), and I /think/ you can do it with piece of code
like:

#define code[a,b,c]{a=b*c+a}

so that if you had the line:

code[var1,var2,6]

the compiler would convert that to

var1=var2*6+var1

before compiling (thus being faster thensubroutines).

The only problem is I don't know the syntax for the define, and that
example there didn't work.

See ya :)



Manta Soft - Amiga programming & webpage designing
http://mantasoft.tripod.com/ ICQ: 21829166
Homepage updated 22/05/00 - New game: Pictris released
- ------------------- Quote of the day: -------------------- -
Capt'n! The spellchecker kinna take this abuse!

------------------------ Yahoo! Groups Sponsor ---------------------~-~>
eGroups is now Yahoo! Groups
Click here for more details
http://click.egroups.com/1/11231/0/_/451227/_/982436666/
---------------------------------------------------------------------_->