Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

Assert Function

  • Last UpdatedJul 18, 2023
  • 1 minute read

Assert reports an error if the test passed by the argument does not return the expected value. The implementation of this function can be found in DEBUG.CI in the INCLUDE project.

For example:

INT
FUNCTION
FileDisplayEx(STRING sFileName)

INT hFile;

hFile = FileOpen(sFileName, "r");
ASSERT(hFile <> -1);
...
FileClose(hFile);
RETURN 0;
END

See Also

Debugging Cicode

TitleResults for “How to create a CRG?”Also Available in