Returns the number of warnings encountered during a load of the specified grammar (if any)
- int LV_SRE_ReturnGrammarNumWarnings(HPORT hport, const char* GrammarLabel)
The port's handle.
The label of the grammar whose number of warnings needs to be returned.
The actual number of warnings associated with the specified grammar.
The input hport is not a valid one.
The operation failed because the port was shutting down.
An exception occurred while processing the request.
Values returned by LV_SRE_ReturnGrammarNumWarnings are particularly useful when debugging grammar load warnings.
Typically, when loading a grammar, some not-fatal warnings may not be severe enough to cause a grammar load to fail, so these warnings may often be overlooked. This function, and the corresponding functions listed below can uncover previously unknown issues within grammars.