remove useless parse catch

This commit is contained in:
zawz 2021-05-21 16:49:01 +02:00
parent 15ac04f505
commit 09186df7b1
3 changed files with 733 additions and 948 deletions

View file

@ -17,7 +17,7 @@ CC=g++
CXXFLAGS= -I$(IDIR) -Wall -pedantic -std=c++20
ifeq ($(DEBUG),true)
# debugging flags
CXXFLAGS += -g -D NO_PARSE_CATCH
CXXFLAGS += -g
else
# release flags
CXXFLAGS += -Ofast

View file

@ -223,7 +223,6 @@ int main(int argc, char* argv[])
}
}
}
#ifndef NO_PARSE_CATCH
catch(format_error& e)
{
if(tsh != nullptr)
@ -232,7 +231,6 @@ int main(int argc, char* argv[])
printFormatError(e);
return ERR_PARSE;
}
#endif
catch(ztd::option_error& e)
{
std::cerr << e.what() << std::endl;

File diff suppressed because it is too large Load diff