Regular API function


Description Sets a custom error message and possibly raises a script error, if a callback to a plugin is underway. See also sim.getLastError
C synopsis simInt simSetLastError(const simChar* funcName,const simChar* errorMessage)
C parameters
funcName: name of the function where the error originated. .
errorMessage: error message
C return value
-1 if operation was not successful
Lua synopsis
Lua parameters
Lua return values