
24 Apr
2004
24 Apr
'04
4:18 p.m.
Hi Paul, "Paul Mensonides" <pmenso57@comcast.net> wrote
And then use it like this:
#include "counter.hpp"
#include NEXT() COUNTER // 1
#include NEXT() COUNTER // 2
#include NEXT() COUNTER // 3
// etc.
This solution almost works for me except I hoped to completely hide the unique number genereation mechanism behind a macro, so that my users are not aware of this, like: REGISTER(...) // 1 is used REGISTER(...) // 2 is used etc. As I understand I can't use #include inside a macro, so looks like I am out of luck here... Regards, Arkadiy