Enum tag inside another enum?
#4

pawn Код:
enum e_MY_ENUM
{
    E_DATA1,
    E_DATA2
};

enum E_MY_2ND_ENUM
{
    e_MY_ENUM:E2_DATA1,
    E2_DATA2
};

new
    MyVar[ E_MY_2ND_ENUM ]
;

main() {
    MyVar[ E2_DATA1 ] = E_DATA2;
    printf("We at @%d", MyVar[E2_DATA1]);
}
Reply


Messages In This Thread
Enum tag inside another enum? - by LarzI - 19.03.2013, 11:44
Re: Enum tag inside another enum? - by Misiur - 19.03.2013, 12:19
Re: Enum tag inside another enum? - by LarzI - 19.03.2013, 12:22
Re: Enum tag inside another enum? - by Misiur - 19.03.2013, 12:25
Re: Enum tag inside another enum? - by LarzI - 19.03.2013, 14:10

Forum Jump:


Users browsing this thread: 2 Guest(s)