-
November 29th, 2008, 01:57 PM
#1
plz help with a c++ macro
can someone please explain the meaning/purpose of this macro?
#define myMacro(a, b) ( (int) &( ( ( a * ) 0 )->b ) )
Thanks!!
-
November 29th, 2008, 02:07 PM
#2
Re: plz help with a c++ macro
In what context did you see this used? I cannot really discern its purpose as it looks like it may involve dereferencing a null pointer.
-
November 29th, 2008, 02:54 PM
#3
Re: plz help with a c++ macro
this looks pretty much like the "offsetof" macro/function in C
-
November 30th, 2008, 09:48 PM
#4
Re: plz help with a c++ macro
Thanks for your help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|