]> www.ginac.de Git - cln.git/blobdiff - src/float/transcendental/cl_LF_ratseries_pqa.cc
Remove exception hooks in favor of real C++ exceptions:
[cln.git] / src / float / transcendental / cl_LF_ratseries_pqa.cc
index 95c6e03d9ea41da394d07cbe93f6351ff55a45cc..ee0dba17fc6340b23716a70cf253858757b925a4 100644 (file)
@@ -11,7 +11,7 @@
 
 #include "cln/lfloat.h"
 #include "cln/integer.h"
-#include "cln/abort.h"
+#include "cln/exception.h"
 #include "cl_LF.h"
 
 namespace cln {
@@ -28,7 +28,7 @@ static void eval_pqa_series_aux (uintC N1, uintC N2,
 {
        switch (N2 - N1) {
        case 0:
-               cl_abort(); break;
+               throw runtime_exception(); break;
        case 1:
                if (P) { *P = args.pv[N1]; }
                *Q = args.qv[N1];
@@ -91,7 +91,7 @@ static void eval_pqsa_series_aux (uintC N1, uintC N2,
 {
        switch (N2 - N1) {
        case 0:
-               cl_abort(); break;
+               throw runtime_exception(); break;
        case 1:
                if (P) { *P = args.pv[N1]; }
                *Q = args.qv[N1];