diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-05-10 22:11:28 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-05-10 22:11:28 +0900 |
| commit | b7a24de37727c0f3d10fb640eb9ebe36e3aed0f2 (patch) | |
| tree | 74223dd70e90118d78ce783bb60a45fbb81f7a76 /mrbgems | |
| parent | fad8b1cefafcc40ca86cd87612ed8597ee600da3 (diff) | |
| download | mruby-b7a24de37727c0f3d10fb640eb9ebe36e3aed0f2.tar.gz mruby-b7a24de37727c0f3d10fb640eb9ebe36e3aed0f2.zip | |
change mrb_bug to get mrb_state and %S formatter
Diffstat (limited to 'mrbgems')
| -rw-r--r-- | mrbgems/mruby-struct/src/struct.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-struct/src/struct.c b/mrbgems/mruby-struct/src/struct.c index e58394005..2775471fe 100644 --- a/mrbgems/mruby-struct/src/struct.c +++ b/mrbgems/mruby-struct/src/struct.c @@ -716,7 +716,7 @@ mrb_struct_equal(mrb_state *mrb, mrb_value s) equal_p = 0; } else if (RSTRUCT_LEN(s) != RSTRUCT_LEN(s2)) { - mrb_bug("inconsistent struct"); /* should never happen */ + mrb_bug(mrb, "inconsistent struct"); /* should never happen */ equal_p = 0; /* This substuture is just to suppress warnings. never called. */ } else { @@ -760,7 +760,7 @@ mrb_struct_eql(mrb_state *mrb, mrb_value s) eql_p = 0; } else if (RSTRUCT_LEN(s) != RSTRUCT_LEN(s2)) { - mrb_bug("inconsistent struct"); /* should never happen */ + mrb_bug(mrb, "inconsistent struct"); /* should never happen */ eql_p = 0; /* This substuture is just to suppress warnings. never called. */ } else { |
