mrb: use meaningful name instead of general "ptr"