Use value of constant as part of a macro
#7

Quote:
Originally Posted by Jonny5
View Post
im come up with this
will replace HOUSE with you constant
then the rest
it should work let me know
pawn Code:
#define HOUSE PICKUPTYPE_HOUSE

#define PickupEvent:%0(%1,%2)           \
    forward PickupEvent_%0(%1,%2);      \
    public PickupEvent_%0(%1,%2)
lol no

What I want is to convert the value of the constant to the real value (e.g. 2) and use that as part of the function name. See my previous post.

I hope it's clear now.
Reply


Messages In This Thread
Use value of constant as part of a macro - by Programie - 11.04.2012, 16:57
Re: Use value of constant as part of a macro - by Jonny5 - 11.04.2012, 17:08
Re: Use value of constant as part of a macro - by Programie - 11.04.2012, 17:12
Re: Use value of constant as part of a macro - by Jonny5 - 11.04.2012, 17:19
Re: Use value of constant as part of a macro - by Programie - 11.04.2012, 17:31
Re: Use value of constant as part of a macro - by Jonny5 - 11.04.2012, 17:50
Re: Use value of constant as part of a macro - by Programie - 11.04.2012, 17:53
Re: Use value of constant as part of a macro - by Jonny5 - 11.04.2012, 17:57
Re: Use value of constant as part of a macro - by Programie - 11.04.2012, 18:09

Forum Jump:


Users browsing this thread: 1 Guest(s)