[Code]StrictArgumentCheck
- Last UpdatedJul 19, 2023
- 1 minute read
|
|
|
UNINTENDED EQUIPMENT OPERATION Do not set the [Code]StrictArgumentCheck parameter to a value of 0, except on the advice of Technical Support for this product. Setting this value to 0 can result in Cicode Functions behaving unexpectedly and raising a hardware alarm. Failure to follow these instructions can result in death, serious injury, or equipment damage. |
Determines whether the compiler checks for calls to functions with missing parameters. The compiler will by default pass a 1 value or an empty string to function calls that do not have a parameter, and no default defined.
Allowable Values:
-
0 (do not check for missing parameters)
-
1 (check for missing parameters)
Default Value:
1
Example
INT
FUNCTION
AddTwoNumbers(INT a, INT b)
RETURN a + b;
END
FUNCTION
CallFunction()
INT sum = AddToNumbers();
This will not compile by default, but will compile when [CODE]StrictArgumentCheck=0.
