#[allow(clippy::too_many_lines, reason = "generated lookup table")]
#[must_use]
pub(crate) const fn code_name(code: i32) -> Option<&'static str> {
let name = match code {
0 => "TS_Err_NoError",
-17000 => "TS_Err_OutOfMemory",
-17001 => "TS_Err_ProgramError",
-17002 => "TS_Err_RegistryAccessError",
-17003 => "TS_Err_RegistryItemNotFound",
-17004 => "TS_Err_DLLNotLoadable",
-17005 => "TS_Err_FunctionNotFoundInLib",
-17006 => "TS_Err_UnableToAllocateSystemResource",
-17007 => "TS_Err_UnableToInitializeOLESystemDLLs",
-17008 => "TS_Err_StackOverflow",
-17009 => "TS_Err_ConvertedErrorCode",
-17010 => "TS_Err_Int32Overflow",
-17011 => "TS_Err_UInt32Overflow",
-17012 => "TS_Err_ExternalServerUnavailable",
-17013 => "TS_Err_Int64Overflow",
-17014 => "TS_Err_UInt64Overflow",
-17098 => "TS_Err_FileFormatNewerThanCurrentVersion",
-17099 => "TS_Err_FileFormatIsOutOfDate",
-17100 => "TS_Err_BadFileFormat",
-17200 => "TS_Err_IOError",
-17201 => "TS_Err_UnableToOpenFile",
-17202 => "TS_Err_BadNetPath",
-17203 => "TS_Err_DriveNotReady",
-17204 => "TS_Err_InvalidPathname",
-17205 => "TS_Err_AccessDenied",
-17206 => "TS_Err_FileAlreadyExists",
-17207 => "TS_Err_DiskFull",
-17208 => "TS_Err_FileWasNotFound",
-17209 => "TS_Err_SharingViolation",
-17210 => "TS_Err_WriteProtected",
-17211 => "TS_Err_InvalidDrive",
-17212 => "TS_Err_PathNotFound",
-17213 => "TS_Err_UnableToCloseFile",
-17214 => "TS_Err_MemoryChecking",
-17215 => "TS_Err_UnableToOpenDirectory",
-17216 => "TS_Err_UnexpectedEndOfFile",
-17300 => "TS_Err_ValueIsInvalidOrOutOfRange",
-17301 => "TS_Err_IndexOutOfRange",
-17302 => "TS_Err_NoItemsInList",
-17303 => "TS_Err_TooManyItems",
-17304 => "TS_Err_UnRecognizedValue",
-17305 => "TS_Err_DuplicateItemOrValue",
-17306 => "TS_Err_UnknownVariableOrProperty",
-17307 => "TS_Err_UnknownType",
-17308 => "TS_Err_UnexpectedType",
-17309 => "TS_Err_IllegalOperationOnValue",
-17310 => "TS_Err_ArrayLocked",
-17311 => "TS_Err_IncompatibleParameters",
-17312 => "TS_Err_UnableToPassByReference",
-17313 => "TS_Err_ExprTypeIncompatibleWithParameter",
-17314 => "TS_Err_ExprValueNotSuperSetOfParameter",
-17315 => "TS_Err_WrongNumberOfParameters",
-17316 => "TS_Err_EvaluationContextNotAvailable",
-17317 => "TS_Err_SingleDimensionalNumericArrayExpected",
-17318 => "TS_Err_LValueExpected",
-17319 => "TS_Err_BadPropertyOrVariableName",
-17320 => "TS_Err_UnknownFunctionOrSequenceName",
-17321 => "TS_Err_TypeMismatchError",
-17322 => "TS_Err_BadExpressionError",
-17323 => "TS_Err_OperationOnlyValidWhenSuspended",
-17324 => "TS_Err_ArrayIndexOutOfBounds",
-17325 => "TS_Err_WrongNumberOfArrayIndices",
-17326 => "TS_Err_MismatchedArrayBounds",
-17327 => "TS_Err_NameAlreadyInUse",
-17328 => "TS_Err_MissingType",
-17329 => "TS_Err_TypeConflict",
-17330 => "TS_Err_CurrentSeqFileNotAvailable",
-17331 => "TS_Err_ItemCannotBeDeleted",
-17332 => "TS_Err_ObjectTypeIncompatibleWithParameter",
-17333 => "TS_Err_TypeCannotBeDeleted",
-17334 => "TS_Err_TypeWithDependingInstancesCannotBeDeleted",
-17335 => "TS_Err_ObjectCannotBeAdded",
-17336 => "TS_Err_InvalidAdapterName",
-17337 => "TS_Err_StepTypeNotFound",
-17338 => "TS_Err_LVRTDllNotLoaded",
-17339 => "TS_Err_ReadObjectNotFound",
-17340 => "TS_Err_TwoDimensionalNumericArrayExpected",
-17341 => "TS_Err_LabVIEWTypeNotSupportedInCVI",
-17342 => "TS_Err_InvalidRegularExpression",
-17343 => "TS_Err_ArrayTypeExpected",
-17344 => "TS_Err_ArrayDimensionExpected",
-17345 => "TS_Err_ArrayDimensionSizeExpected",
-17346 => "TS_Err_InvalidPointer",
-17347 => "TS_Err_EmptyExpressionError",
-17348 => "TS_Err_MismatchedItems",
-17349 => "TS_Err_ObjectLocked",
-17350 => "TS_Err_EvaluateFunctionEmptyExpressionError",
-17351 => "TS_Err_UnexpectedChangeCount",
-17400 => "TS_Err_ThreadCreationFailed",
-17401 => "TS_Err_OperationInProgress",
-17402 => "TS_Err_OperationTimedOut",
-17500 => "TS_Err_OperationFailed",
-17501 => "TS_Err_UnexpectedSystemError",
-17502 => "TS_Err_OS_Exception",
-17503 => "TS_Err_NotSupported",
-17600 => "TS_Err_ModuleLoadFailure",
-17601 => "TS_Err_ModuleNotSpecified",
-17602 => "TS_Err_SequenceAborted",
-17603 => "TS_Err_SequenceTerminated",
-17604 => "TS_Err_OperationCanceled",
-17701 => "TS_Err_UnableToLaunchCVI",
-17702 => "TS_Err_CVIOleError",
-17703 => "TS_Err_CVINotReg",
-17704 => "TS_Err_CVIAutoCmdFailed",
-17705 => "TS_Err_CVIRegValueTypeMismatch",
-17706 => "TS_Err_CVIRegValueNotFound",
-17707 => "TS_Err_CVIRegKeyNotFound",
-17708 => "TS_Err_CVIRegGenericReadError",
-17709 => "TS_Err_CVIModuleHasUnresolvedReferences",
-17710 => "TS_Err_CVIFuncNotFoundInModule",
-17711 => "TS_Err_CVICantConnectToTecrunServer",
-17712 => "TS_Err_CVIUnableToTerminateUserProgInCVI",
-17713 => "TS_Err_CVINonDllModuleNotSupported",
-17714 => "TS_Err_CVIVersionNotSupported",
-17801 => "TS_Err_DispUnknownInterface",
-17802 => "TS_Err_DispUnknownMemberName",
-17803 => "TS_Err_DispUnknownMemberID",
-17804 => "TS_Err_DispUnknownParamName",
-17805 => "TS_Err_DispUnknownParamID",
-17806 => "TS_Err_DispMissingParamName",
-17807 => "TS_Err_DispMissingParamID",
-17808 => "TS_Err_DispWrongNumPositionalParams",
-17809 => "TS_Err_DispMissingRequiredArg",
-17810 => "TS_Err_AutomationObjNotValid",
-17811 => "TS_Err_ActiveXAutomationServerException",
-17812 => "TS_Err_DispObsoleteMember",
-17850 => "TS_Err_RemoteSequenceError",
-17851 => "TS_Err_RemoteSequenceErrorUnableToConnect",
-17852 => "TS_Err_RemoteSequenceRemoteExecutionDenied",
-17853 => "TS_Err_RemoteHostNotSpecified",
-17901 => "TS_Err_FileNotConvertableToSeqFile",
-17902 => "TS_Err_TypePaletteFileLoadErrors",
-18001 => "TS_Err_LVAutoServerError",
-18002 => "TS_Err_LVReportedError",
-18003 => "TS_Err_LVMissingRequiredArg",
-18004 => "TS_Err_LVRunTimeEngineError",
-18005 => "TS_Err_LVTypeConversionError",
-18051 => "TS_Err_RStringNotFound",
-18101 => "TS_Err_DDEFail",
-18151 => "TS_Err_NoFileAssoc",
-18201 => "TS_Err_AdapterNoConnectToAutoServer",
-18202 => "TS_Err_AdapterServerConnectionLost",
-18251 => "TS_Err_FailToRegisterClipFormat",
-18351 => "TS_Err_TypeLibraryReadError",
-18360 => "TS_Err_DoesNotHaveRequiredPrivilege",
-18370 => "TS_Err_SourceCodeControlError",
-18380 => "TS_Err_WatchExpressionError",
-18390 => "TS_Err_MeasStudioInterfaceNotFound",
-18400 => "TS_Err_MethodOrPropertyNotAvailable",
-18500 => "TS_Err_VisualStudioAutomationError",
-18520 => "TS_Err_LV_NXG_AutoServerError",
-18521 => "TS_Err_LV_NXG_ReportedError",
-18522 => "TS_Err_LV_NXG_MissingRequiredArg",
-18523 => "TS_Err_LV_NXG_RunTimeEngineError",
-18524 => "TS_Err_LV_NXG_TypeConversionError",
-18525 => "TS_Err_LV_NXG_RTEDllNotLoaded",
-18526 => "TS_Err_LV_NXG_AutoBuildError",
-18600 => "TS_Err_XMLError",
-18700 => "TS_Err_DNAssemblyMissing",
_ => return None,
};
Some(name)
}