summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorChristopher Aue <[email protected]>2017-07-28 22:46:26 +0200
committerChristopher Aue <[email protected]>2017-07-28 23:19:49 +0200
commitf937af5745cbc6edead0ad3911bf16e08f66a96f (patch)
treeda80d7e0bb43d7245850bf0a708812f0aa48d0e9 /include
parentc7018ea9627efd9c6fe4ef6b6f459fefef01fc52 (diff)
downloadmruby-f937af5745cbc6edead0ad3911bf16e08f66a96f.tar.gz
mruby-f937af5745cbc6edead0ad3911bf16e08f66a96f.zip
Extended Module#const_get to support class paths
Diffstat (limited to 'include')
-rw-r--r--include/mruby/string.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mruby/string.h b/include/mruby/string.h
index 8b75a2275..c3fbb063d 100644
--- a/include/mruby/string.h
+++ b/include/mruby/string.h
@@ -89,6 +89,7 @@ MRB_API void mrb_str_modify(mrb_state*, struct RString*);
* Finds the index of a substring in a string
*/
MRB_API mrb_int mrb_str_index(mrb_state*, mrb_value, const char*, mrb_int, mrb_int);
+#define mrb_str_index_lit(mrb, str, lit, off) mrb_str_index(mrb, str, lit, mrb_strlen_lit(lit), off);
/*
* Appends self to other. Returns self as a concatnated string.