Infinite parameters with defines
#1

How would I make a define that accept 'n' number of parameters?

pawn Код:
#define my_keyword%9my_function(%1, ...?); {print("hello");}
What would this be replaced by?
pawn Код:
...?

// use it like
main()
{
     my_keyword my_function("OnPlayerKill", infinite_params_here...);
}
Reply


Messages In This Thread
Infinite parameters with defines - by RajatPawar - 06.03.2014, 08:33
Re: Infinite parameters with defines - by Misiur - 06.03.2014, 08:37
Re: Infinite parameters with defines - by RajatPawar - 06.03.2014, 08:42
Re: Infinite parameters with defines - by Misiur - 06.03.2014, 08:51
Re: Infinite parameters with defines - by RajatPawar - 06.03.2014, 09:03
Re: Infinite parameters with defines - by Misiur - 06.03.2014, 09:18
Re: Infinite parameters with defines - by RajatPawar - 06.03.2014, 09:35
Re: Infinite parameters with defines - by ColeMiner - 06.03.2014, 09:58

Forum Jump:


Users browsing this thread: 2 Guest(s)