rcx

miscellaneous C library
git clone git://git.rr3.xyz/rcx
Log | Files | Refs | README | LICENSE

macros.h (605B)


      1 #ifndef SET_NAME
      2 #error "rcx/set: SET_NAME must be defined"
      3 #endif
      4 
      5 #if (defined(SET_DECLS) || defined(SET_DEFS)) && !defined(SET_METHOD)
      6 #error "rcx/set: SET_METHOD must be defined"
      7 #endif
      8 
      9 #if defined(SET_ALLOC) || defined(SET_REALLOC) || defined(SET_REALLOCZ)
     10 #error "rcx/set: invalid allocator option; use SET_ALLOCZ"
     11 #endif
     12 
     13 #ifndef SET_T
     14 #error "rcx/set: SET_T must be defined"
     15 #endif
     16 
     17 #ifndef SET_EQ
     18 #define SET_EQ r_table_mem_eq
     19 #endif
     20 
     21 #ifndef SET_HASH
     22 #define SET_HASH r_table_mem_hash
     23 #endif
     24 
     25 #ifndef SET_ALLOCZ
     26 #define SET_ALLOCZ r_allocz
     27 #endif
     28 
     29 #ifndef SET_FREE
     30 #define SET_FREE free
     31 #endif