blob: 71b93328af7bfa3e29f506ad8cfe3abc2827e4b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
function SCI2CNInArgCheck(NInArgs,MinNArgs,MaxNArgs)
// function SCI2CNInArgCheck(NInArgs,MinNArgs,MaxNArgs)
// -----------------------------------------------------------------
// #RNU_RES_B
// Check that NInArgs is in the range specified by MinNArgs and
// MaxNArgs.
//
// Input data:
// NInArgs: number of input arguments of the function under test.
// MinNArgs: minimum number of input arguments allowed.
// MaxNArgs: maximum number of input arguments allowed.
//
// Output data:
// ---
// #RNU_RES_E
//
// Status:
// 23-Nov-2007 -- Raffaele Nutricato: Author.
//
// Copyright 2007 Raffaele Nutricato
// -----------------------------------------------------------------
if ((NInArgs < MinNArgs) | (NInArgs > MaxNArgs))
error(9999, 'Incorrect number of input arguments.');
end
endfunction
|