View Raw SPL
/*****************************************************************************
* *
* ISUNSPECIFIED.SPL Copyright (C) 2020 DSP Development Corporation *
* All Rights Reserved *
* *
* Author: Randy Race *
* *
* Synopsis: Returns 1 if input is an unspecified formal parameter *
* *
* Revisions: 18 Jun 2020 RRR Creation *
* *
*****************************************************************************/
#include
#if @HELP_ISUNSPECIFIED
ISUNSPECIFIED
Purpose: Returns 1 if input is an unspecified formal parameter
Syntax: ISUNSPECIFIED(a)
a - Any input
Returns: An integer, 1 if the input is an unspecified formal, else 0.
Example:
utest(x, y)
{
val = isunspecified(y);
return(val);
}
a = utest(1);
b = utest(1, 2);
a == 1
b == 0
Remarks:
ISUNSPECIFIED always returns an integer.
See Also:
Finite
Isempty
Isinf
Isnan
#endif