Commit 05fd6958 by liyinqiao

Minor error fixed.

parent 137df5d9
...@@ -78,7 +78,7 @@ namespace nts { ...@@ -78,7 +78,7 @@ namespace nts {
if(!(x)) \ if(!(x)) \
{ \ { \
fprintf(stderr, "[ERROR] calling '%s' (%s line %d): %s\n", #x, __FILENAME__, __LINE__, msg); \ fprintf(stderr, "[ERROR] calling '%s' (%s line %d): %s\n", #x, __FILENAME__, __LINE__, msg); \
exit(1); \ throw; \
} \ } \
} \ } \
...@@ -87,7 +87,7 @@ namespace nts { ...@@ -87,7 +87,7 @@ namespace nts {
if(!(x)) \ if(!(x)) \
{ \ { \
fprintf(stderr, "[ERROR] calling '%s' (%s line %d): %s\n", #x, __FILENAME__, __LINE__); \ fprintf(stderr, "[ERROR] calling '%s' (%s line %d): %s\n", #x, __FILENAME__, __LINE__); \
exit(1); \ throw; \
} \ } \
} \ } \
...@@ -95,7 +95,7 @@ namespace nts { ...@@ -95,7 +95,7 @@ namespace nts {
{ \ { \
{ \ { \
fprintf(stderr, "[ERROR] (%s line %d): %s\n", __FILENAME__, __LINE__, msg); \ fprintf(stderr, "[ERROR] (%s line %d): %s\n", __FILENAME__, __LINE__, msg); \
exit(1); \ throw; \
} \ } \
} \ } \
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论