Mar 18, 2004 #1 sachindn Programmer Joined Jun 27, 2000 Messages 10 Location US Hi All, #define VCALL(OX, CX, MX) (*((CX##Class)(((Object)(OX))->__vptr))->MX)((CX)(OX) In the above line whats the meaning of using ##? Thanks
Hi All, #define VCALL(OX, CX, MX) (*((CX##Class)(((Object)(OX))->__vptr))->MX)((CX)(OX) In the above line whats the meaning of using ##? Thanks
Mar 18, 2004 1 #2 theotyflos Programmer Joined Oct 15, 2000 Messages 132 Location GR I'm no C expert, but I think that ## concatenates literals: Code: #define VCALL(OX, CX, MX) (*((CX##Class)(((Object)(OX))->__vptr))->MX)((CX)(OX) : : : VCALL (ox1, cx1, mx1) becomes: (*(([COLOR=blue]cx1Class[/color])(((Object)(ox1))->__vptr))->mx1)((cx1)(ox1) Theophilos. ----------- There are only 10 kinds of people: Those who understand binary and those who don't. Upvote 0 Downvote
I'm no C expert, but I think that ## concatenates literals: Code: #define VCALL(OX, CX, MX) (*((CX##Class)(((Object)(OX))->__vptr))->MX)((CX)(OX) : : : VCALL (ox1, cx1, mx1) becomes: (*(([COLOR=blue]cx1Class[/color])(((Object)(ox1))->__vptr))->mx1)((cx1)(ox1) Theophilos. ----------- There are only 10 kinds of people: Those who understand binary and those who don't.