SMC_GetErrorString

Last Updated2007-01-25
Created At2007-01-25

Gets an error string for an SMCError code.

Notes

SMCError_Okay returns false.

SMCError_Custom (which is thrown on SMCParse_HaltFail) returns false.

native bool SMC_GetErrorString(SMCError error, char[] buffer, int buf_max)

Parameters

SMCError error
The SMCParseError code.
char[] buffer
A string buffer for the error (contents undefined on failure).
int buf_max
The maximum size of the buffer.

Return Value

bool True on success, false otherwise.