Mercurial > hg > octave-lyh
comparison examples/myprop.c @ 14855:1b48b209a8d6
maint: Use Octave coding conventions for coddling parentheses in examples directory
* display.m, subsref.m, display.m, mtimes.m, plot.m, polyval.m, myprop.c,
stringdemo.cc, unwinddemo.cc: Use Octave coding conventions for coddling
parentheses.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Mon, 09 Jul 2012 13:23:31 -0700 |
parents | 4295d634797d |
children | be41c30bcb44 |
comparison
equal
deleted
inserted
replaced
14854:5ae9f0f77635 | 14855:1b48b209a8d6 |
---|---|
6 double handle; | 6 double handle; |
7 char property[256]; | 7 char property[256]; |
8 | 8 |
9 if (nrhs < 2 || nrhs > 3) | 9 if (nrhs < 2 || nrhs > 3) |
10 mexErrMsgTxt ("incorrect number of arguments"); | 10 mexErrMsgTxt ("incorrect number of arguments"); |
11 if (!mxIsDouble(prhs[0])) | 11 if (!mxIsDouble (prhs[0])) |
12 mexErrMsgTxt ("handle expected to be a double scalar"); | 12 mexErrMsgTxt ("handle expected to be a double scalar"); |
13 if (!mxIsChar (prhs[1])) | 13 if (!mxIsChar (prhs[1])) |
14 mexErrMsgTxt ("expected property to be a string"); | 14 mexErrMsgTxt ("expected property to be a string"); |
15 | 15 |
16 handle = mxGetScalar (prhs[0]); | 16 handle = mxGetScalar (prhs[0]); |