Mercurial > octave-nkf
view examples/code/myfunc.c @ 20622:128414587af2
don't print additional error message in argument list evaluation
* pt-arg-list.cc (tree_argument_list::convert_to_const_vector):
Don't call error for for failed argument evaluation.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 09 Oct 2015 16:52:49 -0400 |
parents | c8240a60dd01 |
children |
line wrap: on
line source
#include "mex.h" void mexFunction (int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { const char *nm; nm = mexFunctionName (); mexPrintf ("You called function: %s\n", nm); if (strcmp (nm, "myfunc") == 0) mexPrintf ("This is the principal function\n", nm); return; }