00001 #ifndef __LISTT_I_HPP
00002 #define __LISTT_I_HPP
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #include "listt.hpp"
00030 #include "uti.h"
00031
00032
00033
00034 #ifdef LIST_PTRVERIFY
00035 #define LISTVERIFY(p,func) cdie_beep(!owns(p),"List %s(): invalid Lix",func)
00036 #define XLISTVERIFY(l,p,func) cdie_beep(!l.owns(p),"List %s(): invalid Lix",func)
00037 #define LISTNONULL(p,func) cdie_beep(p==0,"List %s(): null Lix",func)
00038 #define LISTERROR(func,cause) die_beep("List %s(): %s",func,cause)
00039 #else
00040 #define LISTVERIFY(p,func) {}
00041 #define XLISTVERIFY(l,p,func) {}
00042 #define LISTNONULL(p,func) {}
00043 #define LISTERROR(func,cause) { (void)func; }
00044 #endif
00045
00046
00047
00048 #define __SWAP__(a,b,tmp) { tmp=a; a=b; b=tmp; }
00049
00050
00051
00052 #ifdef LIST_PTRVERIFY
00053 #define LIX_SAFE(i,f,a) __lix_safe(i,f,a)
00054 #else
00055 #define LIX_SAFE(i,f,a) lix(i)
00056 #endif
00057
00058
00059
00060 #endif