From 59117d84759f7395dd34d6527dd191459d8d59bd Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Thu, 12 May 2016 16:03:25 +0900 Subject: [PATCH] add try catch --- sample/rawbench.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sample/rawbench.cpp b/sample/rawbench.cpp index c1bdc4e..3d61a57 100644 --- a/sample/rawbench.cpp +++ b/sample/rawbench.cpp @@ -73,6 +73,7 @@ void benchRaw(const char *p, mcl::fp::Mode mode) } int main(int argc, char *argv[]) + try { cybozu::Option opt; size_t bitSize; @@ -119,5 +120,7 @@ int main(int argc, char *argv[]) benchRaw(tbl[i], mcl::fp::FP_XBYAK); #endif } +} catch (std::exception& e) { + printf("ERR %s\n", e.what()); + return 1; } -