Use exceptions to stop the search

Instead of classical flags, throw an
exception when we want to immediately halt
the search. Currently only one type
is used for both UCI stop and threads
cut off.

No functional change.
This commit is contained in:
Marco Costalba
2013-08-14 08:29:57 +02:00
parent bd8f463b7e
commit 11b1a76f35
2 changed files with 30 additions and 24 deletions
+1 -1
View File
@@ -232,7 +232,7 @@ ifeq ($(COMP),clang)
endif
### 3.2 General compiler settings
CXXFLAGS = -Wall -Wcast-qual -fno-exceptions -fno-rtti $(EXTRACXXFLAGS)
CXXFLAGS = -Wall -Wcast-qual -fno-rtti $(EXTRACXXFLAGS)
ifeq ($(comp),gcc)
CXXFLAGS += -ansi -pedantic -Wno-long-long -Wextra -Wshadow