mrubyを超漢字で動作させる
Revisão | dbece716eafbbbccacdf045cbd4f1a13c34217d9 (tree) |
---|---|
Hora | 2014-07-14 21:04:22 |
Autor | take_cheeze <takechi101010@gmai...> |
Commiter | take_cheeze |
Use mrb_bool as return type of mrb_const_defined_at.
@@ -48,7 +48,7 @@ void mrb_iv_set(mrb_state *mrb, mrb_value obj, mrb_sym sym, mrb_value v); | ||
48 | 48 | mrb_bool mrb_iv_defined(mrb_state*, mrb_value, mrb_sym); |
49 | 49 | mrb_value mrb_iv_remove(mrb_state *mrb, mrb_value obj, mrb_sym sym); |
50 | 50 | void mrb_iv_copy(mrb_state *mrb, mrb_value dst, mrb_value src); |
51 | -int mrb_const_defined_at(mrb_state *mrb, struct RClass *klass, mrb_sym id); | |
51 | +mrb_bool mrb_const_defined_at(mrb_state *mrb, struct RClass *klass, mrb_sym id); | |
52 | 52 | mrb_value mrb_mod_constants(mrb_state *mrb, mrb_value mod); |
53 | 53 | mrb_value mrb_f_global_variables(mrb_state *mrb, mrb_value self); |
54 | 54 | mrb_value mrb_gv_get(mrb_state *mrb, mrb_sym sym); |
@@ -1085,7 +1085,7 @@ retry: | ||
1085 | 1085 | return FALSE; |
1086 | 1086 | } |
1087 | 1087 | |
1088 | -int | |
1088 | +mrb_bool | |
1089 | 1089 | mrb_const_defined_at(mrb_state *mrb, struct RClass *klass, mrb_sym id) |
1090 | 1090 | { |
1091 | 1091 | return mrb_const_defined_0(mrb, klass, id, TRUE, FALSE); |