reactor-c
C Runtime for Lingua Franca
|
#include "hashmap.h"
Go to the source code of this file.
Macros | |
#define | HASHMAP(token) |
Defines a hashmap type that maps void pointers to integers. To use this: | |
#define | K void* |
#define | V int |
#define | HASH_OF(key) |
#define HASHMAP | ( | token | ) |
Defines a hashmap type that maps void pointers to integers. To use this:
To retrieve a value from the hashmap:
This will segfault if the entry is not in the hashmap.
See hashmap.h for documentation on how to declare other hashmap types.
#define K void* |
#define V int |