diff options
author | MITSUNARI Shigeo <[email protected]> | 2013-07-04 23:59:12 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2013-07-04 23:59:12 +0900 |
commit | 68fc3502a848f1c77eb0482a36a215230a23f901 (patch) | |
tree | 4190567d36ea7ddc811c4027c8ab63c44cd70457 /sample/toyvm.cpp | |
parent | aadf5b1b402e251f5df7c45696679243adcb5798 (diff) | |
download | xbyak-68fc3502a848f1c77eb0482a36a215230a23f901.tar.gz xbyak-68fc3502a848f1c77eb0482a36a215230a23f901.zip |
change the type of Xbyak::Error from enum to a class
Diffstat (limited to 'sample/toyvm.cpp')
-rw-r--r-- | sample/toyvm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/toyvm.cpp b/sample/toyvm.cpp index a98b7ce..fbe08c8 100644 --- a/sample/toyvm.cpp +++ b/sample/toyvm.cpp @@ -324,8 +324,8 @@ int main() clk.end(); printf("native C %.2fKclk\n", clk.getClock() * 1e-3); } - } catch (Xbyak::Error err) { - printf("ERR:%s(%d)\n", Xbyak::ConvertErrorToString(err), err); + } catch (std::exception& e) { + printf("ERR:%s\n", e.what()); } catch (...) { printf("unknown error\n"); } |