Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (13 sloc) 290 Bytes
#include "idhash.h"
static JSHashNumber key_hash(const void *key)
{
return (JSHashNumber)key;
}
static intN comparator(const void *v1, const void *v2)
{
return v1 == v2;
}
JSHashTable* create_id_hash()
{
return JS_NewHashTable(0, key_hash, comparator, comparator, NULL, NULL);
}
Jump to Line
Something went wrong with that request. Please try again.