diff options
Diffstat (limited to 'macros/scilab_error.sci')
-rw-r--r-- | macros/scilab_error.sci | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/macros/scilab_error.sci b/macros/scilab_error.sci new file mode 100644 index 0000000..24d1559 --- /dev/null +++ b/macros/scilab_error.sci @@ -0,0 +1,19 @@ +// ==================================================================== +// Template toolbox_skeleton +// This file is released under the 3-clause BSD license. See COPYING-BSD. +// ==================================================================== +// +// +function scilab_error(varargin) + + argSize = size(varargin); + + if argSize <> 1 then + error(msprintf(_("toolbox_skeleton", "%s: I''m waiting for only one argument.\n"), "scilab_error")); + end + + if argSize == 1 then + error(msprintf(gettext("toolbox_skeleton", "%s: Yeah! %d is a good number of arguments but I prefer fail, sorry.\n"), "scilab_error", 1)); + end +endfunction +// ==================================================================== |