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

this has two expressions duplicated... but in being so safe in this expression, the self-circular link needs to be duplicated. GrabThing is used for nodes which are circularly bound

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