Configuring Assertions

Use the EWL_ASSERT_DISPLAYS_FUNC macro to specify whether or not the assert() facility also reports the name of the function in which an assertion failed. When compiling a custom version of EWL with EWL_ASSERT_DISPLAYS_FUNC defined as 1, EWL compiles the assert() facility to report the file, line, test expression, and name of the function in which an active assertion fails. When compiling EWL with EWL_ASSERT_DISPLAYS_FUNC defined as 0, the assert() facility only reports the file, line, and test expression.

The EWL_OS_DISK_FILE_SUPPORT and EWL_CONSOLE_SUPPORT macros determine the assert() macro's ability to report an error.