[Tutorial] Macro Example VIA Distance Formula
#8

Quote:
Originally Posted by Ricop522
Посмотреть сообщение
Is this right?
#define SUM(%0, %1) ? (%0 + %1);

@topic


Cool tutorial, I like =p
Thanks, and like RyDeR reposted, you cannot have the space between the comma after %0 and %1, because like a define that space will seperate the search term with the data it should replace the search term with. ? should just not be there. That would be the same as writing the following define.
Код:
#define MAX HOUSES ? 500;
it just wouldn't work out, and thanks, i saw ******' topic on the pre processor and thought that macros should get their "thread".
Reply


Messages In This Thread
Macro Example VIA Distance Formula - by dowster - 12.07.2011, 21:55
Re: Macro Example VIA Distance Formula - by Daren_Jacobson - 12.07.2011, 23:37
Re: Macro Example VIA Distance Formula - by dowster - 13.07.2011, 03:03
Re: Macro Example VIA Distance Formula - by jameskmonger - 15.07.2011, 11:34
Re: Macro Example VIA Distance Formula - by dowster - 15.07.2011, 17:40
Re: Macro Example VIA Distance Formula - by Ricop522 - 15.07.2011, 19:30
Re: Macro Example VIA Distance Formula - by RyDeR` - 15.07.2011, 20:49
Re: Macro Example VIA Distance Formula - by dowster - 15.07.2011, 20:59

Forum Jump:


Users browsing this thread: 1 Guest(s)