add try catch

dev
MITSUNARI Shigeo 9 years ago
parent 6794331382
commit 59117d8475
  1. 5
      sample/rawbench.cpp

@ -73,6 +73,7 @@ void benchRaw(const char *p, mcl::fp::Mode mode)
} }
int main(int argc, char *argv[]) int main(int argc, char *argv[])
try
{ {
cybozu::Option opt; cybozu::Option opt;
size_t bitSize; size_t bitSize;
@ -119,5 +120,7 @@ int main(int argc, char *argv[])
benchRaw(tbl[i], mcl::fp::FP_XBYAK); benchRaw(tbl[i], mcl::fp::FP_XBYAK);
#endif #endif
} }
} catch (std::exception& e) {
printf("ERR %s\n", e.what());
return 1;
} }

Loading…
Cancel
Save