diff options
| author | take_cheeze <[email protected]> | 2015-06-22 10:49:37 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-07-15 14:47:15 +0900 |
| commit | f6b5a829729479d4ae557effc15656605ca71781 (patch) | |
| tree | 9127017d099a8e35fcbb30582c60f3f38fd57f20 /mrbgems/mruby-error/test | |
| parent | cdd72d9c3783749c979edf62522cf9636681538d (diff) | |
| download | mruby-f6b5a829729479d4ae557effc15656605ca71781.tar.gz mruby-f6b5a829729479d4ae557effc15656605ca71781.zip | |
Use class array instead of variadic.
Diffstat (limited to 'mrbgems/mruby-error/test')
| -rw-r--r-- | mrbgems/mruby-error/test/exception.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mrbgems/mruby-error/test/exception.c b/mrbgems/mruby-error/test/exception.c index 7c15fb457..2a943aaae 100644 --- a/mrbgems/mruby-error/test/exception.c +++ b/mrbgems/mruby-error/test/exception.c @@ -40,8 +40,10 @@ static mrb_value run_rescue_exceptions(mrb_state *mrb, mrb_value self) { mrb_value b, r; + struct RClass *cls[1]; mrb_get_args(mrb, "oo", &b, &r); - return mrb_rescue_exceptions(mrb, protect_cb, b, protect_cb, r, E_TYPE_ERROR, NULL); + cls[0] = E_TYPE_ERROR; + return mrb_rescue_exceptions(mrb, protect_cb, b, protect_cb, r, 1, cls); } void |
