Using Colon instead of Paren. to define params in #define
#1

I was just curious if anyone had found a way to use characters besides () to enclose the (well, i don't even want to enclose is) parameters
example:
pawn Код:
#define Coord:%1 Float:%1x, Float:%1y, Float:%1z
new Coord:pPos;
as i was writing this i realized it wouldn't be as effective as i thought. Because in order to pass the coords you would have to do
pawn Код:
Functionthatneeds3floatspassed(Coord:pPos);
but meh, I still want to know.


Edit:FAIL, that would be putting Float: infront of the vars, it may give errors, or it may just cast them to the tag they already are.
Reply


Messages In This Thread
Using Colon instead of Paren. to define params in #define - by Daren_Jacobson - 05.11.2009, 23:30
Re: Using Colon instead of Paren. to define params in #define - by Daren_Jacobson - 05.11.2009, 23:48

Forum Jump:


Users browsing this thread: 2 Guest(s)