remove useless parse catch
This commit is contained in:
parent
15ac04f505
commit
09186df7b1
3 changed files with 733 additions and 948 deletions
2
Makefile
2
Makefile
|
|
@ -17,7 +17,7 @@ CC=g++
|
||||||
CXXFLAGS= -I$(IDIR) -Wall -pedantic -std=c++20
|
CXXFLAGS= -I$(IDIR) -Wall -pedantic -std=c++20
|
||||||
ifeq ($(DEBUG),true)
|
ifeq ($(DEBUG),true)
|
||||||
# debugging flags
|
# debugging flags
|
||||||
CXXFLAGS += -g -D NO_PARSE_CATCH
|
CXXFLAGS += -g
|
||||||
else
|
else
|
||||||
# release flags
|
# release flags
|
||||||
CXXFLAGS += -Ofast
|
CXXFLAGS += -Ofast
|
||||||
|
|
|
||||||
|
|
@ -223,7 +223,6 @@ int main(int argc, char* argv[])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifndef NO_PARSE_CATCH
|
|
||||||
catch(format_error& e)
|
catch(format_error& e)
|
||||||
{
|
{
|
||||||
if(tsh != nullptr)
|
if(tsh != nullptr)
|
||||||
|
|
@ -232,7 +231,6 @@ int main(int argc, char* argv[])
|
||||||
printFormatError(e);
|
printFormatError(e);
|
||||||
return ERR_PARSE;
|
return ERR_PARSE;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
catch(ztd::option_error& e)
|
catch(ztd::option_error& e)
|
||||||
{
|
{
|
||||||
std::cerr << e.what() << std::endl;
|
std::cerr << e.what() << std::endl;
|
||||||
|
|
|
||||||
1677
src/parse.cpp
1677
src/parse.cpp
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue