mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
76188b46ef
Remove the unused mrb_state parameter from KHASH_FOREACH macro to clean up the API. The parameter was never used in the macro implementation and only cluttered the call sites. Changes: - Update KHASH_FOREACH macro signature: (name, mrb, kh, k) -> (name, kh, k) - Update documentation and usage examples in khash.h - Update KSET_FOREACH wrapper macro in mruby-set - Update 2 direct call sites in mruby-metaprog - All mruby-set call sites automatically updated via wrapper macro This is a breaking change but follows the recent API cleanup where we already modified KHASH_FOREACH signature. The macro now has a cleaner interface without the unused parameter. Co-authored-by: Claude <noreply@anthropic.com>