SMC_SetParseEnd
native SMC_SetParseEnd(SMCParser:handle, const func[]);
| Parameter |
Description |
| handle | Handle to an SMC Parse structure. |
| func | A ParseEnd callback. |
Sets the SMC_ParseEnd function of a parse handle.
Below is the prototype of callback:
-
Called when parsing is halted.
@param handle Handle to an SMC Parse structure.
@param halted True if abnormally halted, false otherwise.
@param failed True if parsing failed, false otherwise.
@param data Handle or value passed in SMC_ParseFile
@noreturn
public OnParseEnd(SMCParser:handle, bool:halted, bool:failed, any:data)
-
This function has no return value.
Invalid or corrupt handle.