Creating stock only if not difined
#1

Hello,

I want to build macro that will create stock only if the stock not exists, for example:
Код:
#define mystock%0@%2(%1) \
    #if !defined %0@0 \
        stock%0@0(%1) \
    #else \
        stock%0@%2(%1) \
    #endif
But it will not work... Is there any way to do this?
Reply


Messages In This Thread
Creating stock only if not difined - by Swimor - 24.06.2013, 13:02
Re: Creating stock only if not difined - by [MG]Dimi - 24.06.2013, 13:22
Re: Creating stock only if not difined - by MP2 - 24.06.2013, 13:28
Re: Creating stock only if not difined - by Swimor - 24.06.2013, 13:39
Re: Creating stock only if not difined - by [MG]Dimi - 24.06.2013, 13:41
Re: Creating stock only if not difined - by Mauzen - 24.06.2013, 13:42

Forum Jump:


Users browsing this thread: 1 Guest(s)