If there's a define macro that takes an object, how can it figure out if the object passed is the actual object or a pointer to the object?
Pseudo code:
Code:#define handleTest( obj ) \ Test* t; \ \ /* want to do something like this */ \ if ( obj isOfType pointer ) t = dynamic_cast<Test*> obj; \ else t = &( ( Test ) obj );