summaryrefslogtreecommitdiffhomepage
path: root/include/mruby.h
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-08-07 16:20:40 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2019-08-07 16:20:40 +0900
commitb377b7d58062d555cc45249ae038c8b2875eec9e (patch)
treea68722a5f9c70cb3eee3458cd87edadcd8eafbc5 /include/mruby.h
parent98fc887cb3d9458313cc275c4176d16e95c7c0c2 (diff)
downloadmruby-b377b7d58062d555cc45249ae038c8b2875eec9e.tar.gz
mruby-b377b7d58062d555cc45249ae038c8b2875eec9e.zip
Update `mrb_to_str` and related functions.
Contrary to the name, `mrb_to_str` just checks type, no conversion.
Diffstat (limited to 'include/mruby.h')
-rw-r--r--include/mruby.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mruby.h b/include/mruby.h
index 7deb3cbe2..55505a213 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -1186,6 +1186,7 @@ MRB_API void mrb_gc_unregister(mrb_state *mrb, mrb_value obj);
MRB_API mrb_value mrb_to_int(mrb_state *mrb, mrb_value val);
#define mrb_int(mrb, val) mrb_fixnum(mrb_to_int(mrb, val))
+/* string type checking (contrary to the name, it doesn't convert) */
MRB_API mrb_value mrb_to_str(mrb_state *mrb, mrb_value val);
MRB_API void mrb_check_type(mrb_state *mrb, mrb_value x, enum mrb_vtype t);