change the type of Xbyak::Error from enum to a class

This commit is contained in:
MITSUNARI Shigeo 2013-07-04 23:59:12 +09:00
parent aadf5b1b40
commit 68fc3502a8
18 changed files with 232 additions and 199 deletions

View file

@ -216,8 +216,8 @@ int main(int argc, char *argv[])
#endif
printf("f("); put(valTbl); printf(")=%f\n", y);
}
} catch (Xbyak::Error err) {
printf("ERR:%s(%d)\n", Xbyak::ConvertErrorToString(err), err);
} catch (std::exception& e) {
printf("ERR:%s\n", e.what());
} catch (Error err) {
printf("ERR:%d\n", err);
} catch (...) {