When defined, MEI_ASSERT will cause calls to the macro meiASSERT(expression)
to be compiled into the library. Otherwise, these calls will
be discarded by the preprocessor.
The meiASSERT(...) macro is used by the library and
is available to applications. It is a valuable debugging tool
that can be used to catch programming errors at their source
and prevent them from spreading. If the argument to the macro
is TRUE (i.e. non-zero), execution proceeds normally. Otherwise,
an error message is displayed; the message contains the name
of the file and the line number of the meiASSERT(...)
call. The application exits after displaying the message.
The MEI_ASSERT symbol should generally be defined except
for when library size must be as small as possible and application
execution speed must be as fast as possible.
|