Diff of /src/__errcore__.cc [f62e8c] .. [b92126] Maximize Restore

  Switch to side-by-side view

--- a/src/__errcore__.cc
+++ b/src/__errcore__.cc
@@ -38,6 +38,12 @@
 {
   octave_value retval;
 
+  if (args.length () != 2)
+    {
+      print_usage ();
+      return retval;
+    }
+
   Matrix a = args(0).matrix_value ();
   Matrix b = args(1).matrix_value ();
 
@@ -64,6 +70,14 @@
 }
 
 /*
+%% Test input validation
+%!error __errcore__ ()
+%!error __errcore__ (1)
+%!error __errcore__ (1, 2, 3)
+%!error __errcore__ ([1 2], 3)
+*/
+
+/*
 ;;; Local Variables: ***
 ;;; mode: C++ ***
 ;;; End: ***