Documentation Project 1
ContentsIndexHome
PreviousUpNext
sack::LinkThingAfter Macro
C++
#define LinkThingAfter( node, thing ) \
    ( ( (thing)&&(node))   \
    ?(((((thing)->next = (node)->next))?((node)->next->me = &(thing)->next):0) \
     ,((thing)->me = &(node)->next), ((node)->next = thing))  \
    :((node)=(thing)) )

put 'Thing' after 'node

Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!