Get rid of IOError2
This commit is contained in:
parent
b90aa740bb
commit
6fccac89e5
|
@ -71,8 +71,7 @@ static const MrbExcData excData[] =
|
||||||
{ Shutdown, "SystemExit" },
|
{ Shutdown, "SystemExit" },
|
||||||
{ PHYSFS, "PHYSFSError" },
|
{ PHYSFS, "PHYSFSError" },
|
||||||
{ SDL, "SDLError" },
|
{ SDL, "SDLError" },
|
||||||
{ MKXP, "MKXPError" },
|
{ MKXP, "MKXPError" }
|
||||||
{ IO, "IOError2" }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static elementsN(excData);
|
static elementsN(excData);
|
||||||
|
@ -118,6 +117,7 @@ MrbData::MrbData(mrb_state *mrb)
|
||||||
|
|
||||||
exc[TypeError] = mrb_class_get(mrb, "TypeError");
|
exc[TypeError] = mrb_class_get(mrb, "TypeError");
|
||||||
exc[ArgumentError] = mrb_class_get(mrb, "ArgumentError");
|
exc[ArgumentError] = mrb_class_get(mrb, "ArgumentError");
|
||||||
|
exc[IOError] = mrb_class_get(mrb, "IOError");
|
||||||
|
|
||||||
for (size_t i = 0; i < symDataN; ++i)
|
for (size_t i = 0; i < symDataN; ++i)
|
||||||
symbols[symData[i].ind] = mrb_intern_cstr(mrb, symData[i].str);
|
symbols[symData[i].ind] = mrb_intern_cstr(mrb, symData[i].str);
|
||||||
|
@ -134,6 +134,7 @@ static const MrbException excToMrbExc[] =
|
||||||
|
|
||||||
TypeError,
|
TypeError,
|
||||||
ArgumentError,
|
ArgumentError,
|
||||||
|
IOError,
|
||||||
|
|
||||||
PHYSFS, /* PHYSFSError */
|
PHYSFS, /* PHYSFSError */
|
||||||
SDL, /* SDLError */
|
SDL, /* SDLError */
|
||||||
|
|
|
@ -91,6 +91,7 @@ enum MrbException
|
||||||
|
|
||||||
TypeError,
|
TypeError,
|
||||||
ArgumentError,
|
ArgumentError,
|
||||||
|
IOError,
|
||||||
|
|
||||||
MrbExceptionsMax
|
MrbExceptionsMax
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue