err = hashtab_store(myhashtab, gensym("test"), (t_object *)myobject);
post("error is %i", err); // prints 0
But if called twice, storing different t_object pointers each time, the second t_object instance is getting stomped on, and only the first t_object pointer is stored under the "test" key.
slot contains 1 entries
total size is 1 entries
using 1 out of 257 slots
average entries per non-empty slot is 1.000000
maximum entries in a slot is 1
I'd thought that hashtab_store would add the second item as a second entry for the "test" key.
So what's happening here? I assume I'm misinterpreting how hashtab is implemented - is there any documentation or example available apart from ext_hashtab.h? A search of the externals PDF, the example projects, and this site reveals nothing.