Sfoglia il codice sorgente

[Minor] Add utility macros for static hash tables

tags/3.6
Vsevolod Stakhov 11 mesi fa
parent
commit
dc5d99e5cf
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2
    0
      contrib/libucl/khash.h

+ 2
- 0
contrib/libucl/khash.h Vedi File

@return Pointer to the hash table [khash_t(name)*] @return Pointer to the hash table [khash_t(name)*]
*/ */
#define kh_init(name) kh_init_##name() #define kh_init(name) kh_init_##name()
#define kh_static_init(name, h) kh_static_init_##name(h)


/*! @function /*! @function
@abstract Destroy a hash table. @abstract Destroy a hash table.
@param h Pointer to the hash table [khash_t(name)*] @param h Pointer to the hash table [khash_t(name)*]
*/ */
#define kh_destroy(name, h) kh_destroy_##name(h) #define kh_destroy(name, h) kh_destroy_##name(h)
#define kh_static_destroy(name, h) kh_static_destroy_##name(h)


/*! @function /*! @function
@abstract Reset a hash table without deallocating memory. @abstract Reset a hash table without deallocating memory.

Loading…
Annulla
Salva