comparison src/error.cc @ 8746:5dd06f19e9be

handle commands in the lexer
author John W. Eaton <jwe@octave.org>
date Sun, 15 Feb 2009 23:49:15 -0500
parents fa78cb8d8a5c
children eb63fbe60fab
comparison
equal deleted inserted replaced
8745:6dc61981d18b 8746:5dd06f19e9be
1031 handle_message (error_with_id, id.c_str (), "unspecified error", nargs); 1031 handle_message (error_with_id, id.c_str (), "unspecified error", nargs);
1032 1032
1033 return retval; 1033 return retval;
1034 } 1034 }
1035 1035
1036 DEFCMD (warning, args, nargout, 1036 DEFUN (warning, args, nargout,
1037 "-*- texinfo -*-\n\ 1037 "-*- texinfo -*-\n\
1038 @deftypefn {Built-in Function} {} warning (@var{template}, @dots{})\n\ 1038 @deftypefn {Built-in Function} {} warning (@var{template}, @dots{})\n\
1039 @deftypefnx {Built-in Function} {} warning (@var{id}, @var{template}, @dots{})\n\ 1039 @deftypefnx {Built-in Function} {} warning (@var{id}, @var{template}, @dots{})\n\
1040 Format the optional arguments under the control of the template string\n\ 1040 Format the optional arguments under the control of the template string\n\
1041 @var{template} using the same rules as the @code{printf} family of\n\ 1041 @var{template} using the same rules as the @code{printf} family of\n\