X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=cds%2Fdetails%2Fthrow_exception.h;fp=cds%2Fdetails%2Fthrow_exception.h;h=047e00f8834e70b7147a0fc6c86eaddc74b6a82b;hb=512d2216f4843bb853811931fed6c234234a89ad;hp=187c4ffb0255522147a26e4afc4a81039ff97259;hpb=217c36ba8f1a2ff3d7591352dab481c39e69ea70;p=libcds.git diff --git a/cds/details/throw_exception.h b/cds/details/throw_exception.h index 187c4ffb..047e00f8 100644 --- a/cds/details/throw_exception.h +++ b/cds/details/throw_exception.h @@ -46,11 +46,11 @@ namespace cds { throws the \p exception. If exception is disabled, \p %throw_exception() prints an exception message to - standard output and call \p abort(). + standard output and call \p abort(). You can supply your own \p %cds::throw_exception() function; for that you should specify \p -DCDS_USER_DEFINED_THROW_EXCEPTION - in compiler command line. + in compiler command line. @note \p %throw_exception() never returns. If the user-defined \p %throw_exception() returns, the behavior is undefined. @@ -71,7 +71,7 @@ namespace cds { template CDS_NORETURN static inline void throw_exception( E&& exception, char const* file, int line ) { - printf( "file %s, line %d: %s\n", file, line, exception.what() ); + printf( "file %s, line %d: %s\n", file, line, exception.what()); abort(); } #endif