• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

mrubyを超漢字で動作させる


Commit MetaInfo

Revisãodbece716eafbbbccacdf045cbd4f1a13c34217d9 (tree)
Hora2014-07-14 21:04:22
Autortake_cheeze <takechi101010@gmai...>
Commitertake_cheeze

Mensagem de Log

Use mrb_bool as return type of mrb_const_defined_at.

Mudança Sumário

Diff

--- a/include/mruby/variable.h
+++ b/include/mruby/variable.h
@@ -48,7 +48,7 @@ void mrb_iv_set(mrb_state *mrb, mrb_value obj, mrb_sym sym, mrb_value v);
4848 mrb_bool mrb_iv_defined(mrb_state*, mrb_value, mrb_sym);
4949 mrb_value mrb_iv_remove(mrb_state *mrb, mrb_value obj, mrb_sym sym);
5050 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);
5252 mrb_value mrb_mod_constants(mrb_state *mrb, mrb_value mod);
5353 mrb_value mrb_f_global_variables(mrb_state *mrb, mrb_value self);
5454 mrb_value mrb_gv_get(mrb_state *mrb, mrb_sym sym);
--- a/src/variable.c
+++ b/src/variable.c
@@ -1085,7 +1085,7 @@ retry:
10851085 return FALSE;
10861086 }
10871087
1088-int
1088+mrb_bool
10891089 mrb_const_defined_at(mrb_state *mrb, struct RClass *klass, mrb_sym id)
10901090 {
10911091 return mrb_const_defined_0(mrb, klass, id, TRUE, FALSE);