diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-08-07 16:20:40 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-08-07 16:20:40 +0900 |
| commit | b377b7d58062d555cc45249ae038c8b2875eec9e (patch) | |
| tree | a68722a5f9c70cb3eee3458cd87edadcd8eafbc5 /include/mruby.h | |
| parent | 98fc887cb3d9458313cc275c4176d16e95c7c0c2 (diff) | |
| download | mruby-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.h | 1 |
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); |
