Sack Library Documentation
ContentsIndexReferenceHome
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

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.
Copyright (c) 2000+. All rights reserved.
What do you think about this topic? Send feedback!