summaryrefslogtreecommitdiffhomepage
path: root/src/class.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-08-07 15:40:44 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2019-08-07 15:52:10 +0900
commit98fc887cb3d9458313cc275c4176d16e95c7c0c2 (patch)
tree8b849e34d9684e3d0e3e72a132ac8d59ee45cb47 /src/class.c
parentb8a87bd1115bc7f89e2e6caadb70d868d59b3a81 (diff)
downloadmruby-98fc887cb3d9458313cc275c4176d16e95c7c0c2.tar.gz
mruby-98fc887cb3d9458313cc275c4176d16e95c7c0c2.zip
Reorganize `mrb_string_value_cstr` and related functions.
`mrb_string_value_cstr` and `mrb_string_value_len`: obsolete `mrb_string_cstr`: new function to retrieve NULL terminated C string `RSTRING_CSTR`: wrapper macro of `mrb_string_cstr`
Diffstat (limited to 'src/class.c')
-rw-r--r--src/class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class.c b/src/class.c
index ff55de0e6..5b190d28b 100644
--- a/src/class.c
+++ b/src/class.c
@@ -770,7 +770,7 @@ mrb_get_args(mrb_state *mrb, const char *format, ...)
}
if (i < argc) {
ss = to_str(mrb, ARGV[arg_i++]);
- *ps = mrb_string_value_cstr(mrb, &ss);
+ *ps = RSTRING_CSTR(mrb, ss);
i++;
}
}