summaryrefslogtreecommitdiffstats
path: root/scilab/modules/data_structures/macros/struct.sci
diff options
context:
space:
mode:
authorPierre MARECHAL <pierre.marechal@scilab.org>2009-03-23 14:00:40 +0100
committerPierre MARECHAL <pierre.marechal@scilab.org>2009-03-23 14:00:40 +0100
commit443093754e54c86f26479703ffb353021775cbf3 (patch)
tree9069d1f9cd225dccbc11aad0405e7557ebe0b4ec /scilab/modules/data_structures/macros/struct.sci
parent1fd523020e4af82f74c4c80203584324910da8eb (diff)
downloadscilab-443093754e54c86f26479703ffb353021775cbf3.zip
scilab-443093754e54c86f26479703ffb353021775cbf3.tar.gz
- isfield : check input parameters
- Add some tests of isfield functions - struct : bring precision to the error message
Diffstat (limited to 'scilab/modules/data_structures/macros/struct.sci')
-rw-r--r--scilab/modules/data_structures/macros/struct.sci2
1 files changed, 1 insertions, 1 deletions
diff --git a/scilab/modules/data_structures/macros/struct.sci b/scilab/modules/data_structures/macros/struct.sci
index 759d5f7..de41446 100644
--- a/scilab/modules/data_structures/macros/struct.sci
+++ b/scilab/modules/data_structures/macros/struct.sci
@@ -22,7 +22,7 @@ if rhs==0 then
22end 22end
23 23
24if floor(rhs/2)*2<>rhs then 24if floor(rhs/2)*2<>rhs then
25 error(msprintf(gettext("%s: Wrong number of input argument(s)."),'struct')); 25 error(msprintf(gettext("%s: Wrong number of input argument(s) : an even number is expected."),"struct"));
26end 26end
27 27
28nbfields=size(varargin)/2 28nbfields=size(varargin)/2