I try to expand my knowledge about macros and their usage.
I have a specific problem which i bumped.
Here's my situation
- I have a class named
RudyObject
- This class has a get function for both member(
GetRudyObjectID()
) and static(GetStaticRudyObjectID()
).
Here's my problem
I plan to create macro which adapts itself to given situation.
Here's the scenario i'd like to solve
TYPEOF
(variable value type) should expand as variable.GetRudyObjectID()
TYPEOF
(variable pointer) should expand as variable->GetRudyObjectID()
TYPEOF
(type) should expand astype::GetStaticRudyObjectID()
Do you guys have any solution,tips or directios for this situation.