mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
8f7bfa4f68
Convert kset_copy_merge and kset_copy_replace from macros to static functions for better maintainability and debugging. Benefits: - Better debugging: can set breakpoints and step through code - Improved type safety: proper function parameter checking - Cleaner code: no macro expansion bloat at call sites - Better error messages: meaningful function names in stack traces - Easier maintenance: functions are simpler to modify than complex macros The operations are substantial enough (memory allocation, loops with GC management) that function call overhead is negligible compared to the actual work performed. Co-authored-by: Claude <noreply@anthropic.com>