aboutsummaryrefslogtreecommitdiffhomepage
path: root/sample/toyvm.cpp
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2013-07-04 23:59:12 +0900
committerMITSUNARI Shigeo <[email protected]>2013-07-04 23:59:12 +0900
commit68fc3502a848f1c77eb0482a36a215230a23f901 (patch)
tree4190567d36ea7ddc811c4027c8ab63c44cd70457 /sample/toyvm.cpp
parentaadf5b1b402e251f5df7c45696679243adcb5798 (diff)
downloadxbyak-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.cpp4
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");
}