Documentation Project 1
ContentsIndexHome
PreviousUpNext
sack::LinkThingBefore Macro
C++
#define LinkThingBefore( node, thing ) \
    {  \
thing->next = (*node->me);\
    (*node->me) = thing;    \
thing->me = node->me;       \
node->me = &thing->next;     \
}

put 'Thing' before 'node'... so (*node->me) = thing

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