CLibs
|
Go to the source code of this file.
Macros | |
#define | UNUSED(UNUSEDARG) |
Stops those pesky unused variable compiler warnings/errors. | |
#define | STRLEN(STRING) |
For string literals. | |
#define | countof(array) |
Number of elements in an array (stack-allocated) | |
#define | cmpeq(cmp_retval) |
Evaluates the cmp function as true if the elements are equal. | |
#define | DEFINE_CMP_FUNCTION(TYPE) |
Functions | |
LibraryDefined uint64_t | hash_func (const void *const data, const size_t nbytes) |
#define cmpeq | ( | cmp_retval | ) |
Evaluates the cmp function as true if the elements are equal.
#define countof | ( | array | ) |
Number of elements in an array (stack-allocated)
#define DEFINE_CMP_FUNCTION | ( | TYPE | ) |
Creates a new static comparator function with limited visibility for already comparable numeric types.
TYPE has to be a single token since it's used to define the name of the function.
#define STRLEN | ( | STRING | ) |
For string literals.
#define UNUSED | ( | UNUSEDARG | ) |
Stops those pesky unused variable compiler warnings/errors.
LibraryDefined uint64_t hash_func | ( | const void *const | data, |
const size_t | nbytes ) |
Creates an arbitrary hash of any data of the specified length.
Used, for example, in set.h and dictionary.h.
data | pointer to data |
nbytes | number of bytes (chars) under the pointer |