public static bool AutoThrow(this VslSSStatus status, [CallerFilePath] string file = null, [CallerLineNumber] int?line = null) => !status.IsError() ? false : throw new Exception($"{file} line {line}: VSL SS Error Code {status}");
public static bool IsError(this VslSSStatus status) => status != VslSSStatus.VSL_SS_OK;