Sack Library Documentation
ContentsIndexReferenceHome
PreviousUpNext
sack::LinkThing Macro
C++
#define LinkThing( root, node ) \
        ((( (node)->next = (root) )?        \
    (((root)->me) = &((node)->next)):0),  \
    (((node)->me) = &(root)),             \
    ((root) = (node)) )

Link a new node into the list.

struct mynode 

DeclareLink( struct mynode ); 

} *node; 

 

struct mynode *list; 

LinkThing( list_root, node );

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!