Extended Module#const_get to support class paths

This commit is contained in:
Christopher Aue
2017-07-28 22:46:26 +02:00
parent c7018ea962
commit f937af5745
3 changed files with 42 additions and 5 deletions
+1
View File
@@ -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.