macro
#5

but i want xyz_2 not xyz_LOL

pawn Код:
#include <a_samp>

#define ABC:%1(%2) \
    forward xyz_%1(%2); \
    public xyz_%1(%2)

#define LOL         2


main()
{
    print("xyz_"#LOL);
    CallLocalFunction("xyz_LOL", "i", 345);
}

ABC:LOL(playerid)
{
    printf("Called: %d",playerid);
    return 1;
}
result

xyz_2
Called: 345

so called xyz_LOL not _2
Reply


Messages In This Thread
macro - by Jefff - 19.12.2013, 21:11
Re: macro - by iJumbo - 19.12.2013, 21:24
Re: macro - by Jefff - 19.12.2013, 21:31
Re: macro - by Patrick - 19.12.2013, 21:33
Re: macro - by Jefff - 19.12.2013, 21:47
Re: macro - by Patrick - 19.12.2013, 21:59
Re: macro - by Jefff - 19.12.2013, 22:03
Re: macro - by Patrick - 19.12.2013, 22:08
Re: macro - by Jefff - 19.12.2013, 22:11
Re: macro - by Patrick - 19.12.2013, 22:28

Forum Jump:


Users browsing this thread: 1 Guest(s)