5 * The following code is based on Lua 4.0 (Copyright 1994-2002 Tecgraf, PUC-Rio.)
6 * http://www.lua.org/copyright.html#4
7 * http://www.lua.org/source/4.0.1/src_ltable.c.html
12 //#define hashptr(p) ((VXHash)(((VXInteger)p) >> 3))
13 #define hashptr(p) (((*reinterpret_cast<VXInteger*>(p)) >> 3))
15 inline VXHash
HashObj(const VXObject
&key
)
20 return _string(key
)->_hash
;
22 return (VXHash
)((VXInteger
)_float(key
));
25 return (VXHash
)((VXInteger
)_integer(key
));
27 return hashptr(key
._unVal
.pRefCounted
);