SMC_ParseFile Function

Parses an SMC file.

SMCError SMC_ParseFile(Handle smc, const char[] file, int &line, int &col)

Parameters

Handle smc

A Handle to an SMC Parse structure.

const char[] file

A string containing the file path.

int& line

An optional by reference cell to store the last line number read.

int& col

An optional by reference cell to store the last column number read.

Return Value

An SMCParseError result.

Errors

Invalid or corrupt Handle.