simSetLastError

Sets a custom error message and possibly raises a script error

C++ synopsis

int simSetLastError(const char* setToNull, const char* errorMessage)

Arguments

  • setToNull: set to nullptr
  • errorMessage: error message

Return

  • -1 if operation was not successful


See also: