Auxiliary API
scaux.h file contains auxiliary API that can be useful while testing scripts.
Functions
-
PCStr SCAUXGetCompileErrorDesc(SCCOMPERROR code) - returns the name of the given compilation error as null terminated string
-
PCStr SCAUXGetEnvErrorDesc(SCENVERROR code) - returns the name of the given environment error as null terminated string
-
void SCAUXDefaultCompileErrorCallback(const SCCompileError *err, void *userData) - prints the error to the standard error output, may be passed in the environment initialization structure
-
PCStr SCAUXGetEnvErrorDesc(SCENVERROR code) - prints environment error to the standard error output, may be passed in the environment initialization structure
Classes
-
SCAuxFileMemLogger
This class allow to log memory allocations and deallocations. It must be created before environment initialization.
You need at first call Create method with a file path to log. Then pass LoggerProc static method to the environment
initialization structure.