Skip to content
Permalink
Browse files
make mrb_hash_values() a public API function
  • Loading branch information
wrl committed Aug 1, 2016
1 parent eb7422a commit e02a88e0318385c83404d774a2099dc35e665f49
Showing 2 changed files with 6 additions and 1 deletion.
@@ -55,6 +55,11 @@ MRB_API mrb_value mrb_hash_keys(mrb_state *mrb, mrb_value hash);
MRB_API mrb_value mrb_check_hash_type(mrb_state *mrb, mrb_value hash);
MRB_API mrb_value mrb_hash_empty_p(mrb_state *mrb, mrb_value self);

/*
* Gets an array of values.
*/
MRB_API mrb_value mrb_hash_values(mrb_state *mrb, mrb_value hash);

/*
* Clears the hash.
*/
@@ -745,7 +745,7 @@ mrb_hash_keys(mrb_state *mrb, mrb_value hash)
*
*/

static mrb_value
MRB_API mrb_value
mrb_hash_values(mrb_state *mrb, mrb_value hash)
{
khash_t(ht) *h = RHASH_TBL(hash);

0 comments on commit e02a88e

Please sign in to comment.