1. 07 Sep, 2021 1 commit
  2. 06 Sep, 2021 6 commits
  3. 05 Sep, 2021 3 commits
  4. 04 Sep, 2021 5 commits
  5. 03 Sep, 2021 2 commits
  6. 01 Sep, 2021 4 commits
  7. 31 Aug, 2021 12 commits
  8. 29 Aug, 2021 1 commit
  9. 28 Aug, 2021 4 commits
  10. 27 Aug, 2021 1 commit
    • dearblue's avatar
      Refactor the `mrb_get_args()` function · 6ac8d14b
      dearblue authored
      - Removed the `ARGV` macro.
        The current path doesn't go into the mruby VM and there's also no need to separate variables.
      - Use common functions to check object types.
        - Use `mrb_ensure_string_type()` to check the string instead of `mrb_to_str()`.
          This is for consistency with array and hash.
        - Use `mrb_ensure_array_type()` to check the array instead of `to_ary()`.
        - Use `mrb_ensure_hash_type()` to check the hash instead of `to_hash()`.
        - Add and use `ensure_class_type()` to check class and module.
      - Changed the argument index type from `mrb_int` to `int`.
        Even if it is `int16_t`, it is enough.
        `mrb_int` is overkill, especially if `MRB_32BIT` and `MRB_INT64` are defined.
      6ac8d14b
  11. 26 Aug, 2021 1 commit