Fix crash when passing wrong arguments.
THROW() did not actually throw in exception-enabled builds, silly oversight.
This commit is contained in:
Родитель
b72feb557c
Коммит
c92b839ecb
2
main.cpp
2
main.cpp
|
@ -43,7 +43,7 @@ using namespace std;
|
|||
exit(1); \
|
||||
} while (0)
|
||||
#else
|
||||
#define THROW(x) runtime_error(x)
|
||||
#define THROW(x) throw runtime_error(x)
|
||||
#endif
|
||||
|
||||
struct CLIParser;
|
||||
|
|
Загрузка…
Ссылка в новой задаче