For supporting -fno-exceptions compiler option, this patch adds PICOJSON_DISABLE_EXCEPTION preprocessor macro switch. When it is defined, picojson utilizes std::abort instead of throw.
I confirmed picojson.h can be compiled with clang++ -fno-exception with this patch and all tests passed by make test.
Fixes #117
For supporting
-fno-exceptions
compiler option, this patch addsPICOJSON_DISABLE_EXCEPTION
preprocessor macro switch. When it is defined, picojson utilizesstd::abort
instead ofthrow
.I confirmed
picojson.h
can be compiled withclang++ -fno-exception
with this patch and all tests passed bymake test
.