Skip to content

Commit

Permalink
Get rid of IOError2
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsejet committed Nov 25, 2018
1 parent b90aa74 commit 6fccac8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions binding-mruby/binding-util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ static const MrbExcData excData[] =
{ Shutdown, "SystemExit" },
{ PHYSFS, "PHYSFSError" },
{ SDL, "SDLError" },
{ MKXP, "MKXPError" },
{ IO, "IOError2" }
{ MKXP, "MKXPError" }
};

static elementsN(excData);
Expand Down Expand Up @@ -118,6 +117,7 @@ MrbData::MrbData(mrb_state *mrb)

exc[TypeError] = mrb_class_get(mrb, "TypeError");
exc[ArgumentError] = mrb_class_get(mrb, "ArgumentError");
exc[IOError] = mrb_class_get(mrb, "IOError");

for (size_t i = 0; i < symDataN; ++i)
symbols[symData[i].ind] = mrb_intern_cstr(mrb, symData[i].str);
Expand All @@ -134,6 +134,7 @@ static const MrbException excToMrbExc[] =

TypeError,
ArgumentError,
IOError,

PHYSFS, /* PHYSFSError */
SDL, /* SDLError */
Expand Down
1 change: 1 addition & 0 deletions binding-mruby/binding-util.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ enum MrbException

TypeError,
ArgumentError,
IOError,

MrbExceptionsMax
};
Expand Down

0 comments on commit 6fccac8

Please sign in to comment.