]> www.ginac.de Git - ginac.git/blobdiff - ginac/inifcns.cpp
- ASSERT macro renamed to GINAC_ASSERT
[ginac.git] / ginac / inifcns.cpp
index ecd35b688bbf10d3f3fe5403ab78fb8e7ed72d88..3f67d848cb199d3742dcf510340c083e00eb4b74 100644 (file)
@@ -149,8 +149,8 @@ ex lsolve(ex const &eqns, ex const &symbols)
         }
         ex sol=lsolve(lst(eqns),lst(symbols));
         
-        ASSERT(sol.nops()==1);
-        ASSERT(is_ex_exactly_of_type(sol.op(0),relational));
+        GINAC_ASSERT(sol.nops()==1);
+        GINAC_ASSERT(is_ex_exactly_of_type(sol.op(0),relational));
         
         return sol.op(0).op(1); // return rhs of first solution
     }
@@ -208,7 +208,7 @@ ex lsolve(ex const &eqns, ex const &symbols)
     } catch (runtime_error const & e) {
         // probably singular matrix (or other error)
         // return empty solution list
-        cerr << e.what() << endl;
+        // cerr << e.what() << endl;
         return lst();
     }
     
@@ -247,4 +247,9 @@ ex ncpower(ex const &basis, unsigned exponent)
     return ncmul(v,1);
 }
 
+/** Force inclusion of functions from initcns_gamma and inifcns_zeta
+ *  for static lib (so ginsh will see them). */
+unsigned force_include_gamma = function_index_gamma;
+unsigned force_include_zeta = function_index_zeta;
+
 } // namespace GiNaC