diff libinterp/corefcn/dasrt.cc @ 33395:a258493e726a

Backed out changeset c714266d9f0d
author Arun Giridhar <arungiridhar@gmail.com>
date Sat, 13 Apr 2024 14:28:48 -0400
parents c714266d9f0d
children
line wrap: on
line diff
--- a/libinterp/corefcn/dasrt.cc	Sat Apr 13 14:23:04 2024 +0200
+++ b/libinterp/corefcn/dasrt.cc	Sat Apr 13 14:28:48 2024 -0400
@@ -69,8 +69,7 @@
 {
   ColumnVector retval;
 
-  if (x.numel () != xdot.numel ())
-    error ("dasrt_user_f: X and XDOT must have the same number of elements");
+  panic_unless (x.numel () == xdot.numel ());
 
   octave_value_list args;
 
@@ -160,8 +159,7 @@
 {
   Matrix retval;
 
-  if (x.numel () != xdot.numel ())
-    error ("dasrt_user_j: X and XDOT must have the same number of elements");
+  panic_unless (x.numel () == xdot.numel ());
 
   octave_value_list args;