This repository has been archived on 2024-01-06. You can view files and clone it, but cannot push or open issues or pull requests.
|
//bintree宏定义
|
|
|
|
#include "binnode.hpp"
|
|
|
|
#define isRoot(x) (!(x->parent))
|
|
#define isLC(x) (!isRoot(x)&&((x)==(x->parent->lc))
|
|
#define isRC(x) (!isRoot(x)&&((x)==(x->parent->rc))
|
|
#define hasLC(x) (x->lc)
|
|
#define hasRC(x) (x->rc) |