Original Post
Hi
I got a macro that i love
But wanna streamline it a bit if its possible. I have
where the macro looks like:
Any way to inside the macro get the classType so i dont have to pass it manually each time? In other words so it can be used like this:
Thanks a lot!
Erik
I got a macro that i love
loop(cUnit,unitList)
endLoop
where the macro looks like:
#define loop(classType,myList) \
{std::list<classType *>::iterator it; \
for ( it = myList.begin(); it != myList.end(); ++it ){ \
classType * uu=*it;
Any way to inside the macro get the classType so i dont have to pass it manually each time? In other words so it can be used like this:
loop(unitList)
endLoop
Thanks a lot!
Erik