modernc.org/cc@v1.0.1/kind_string.go (about) 1 // Code generated by "stringer -type Kind"; DO NOT EDIT. 2 3 package cc // import "modernc.org/cc" 4 5 import "fmt" 6 7 const _Kind_name = "UndefinedVoidPtrUintPtrCharSCharUCharShortUShortIntUIntLongULongLongLongULongLongFloatDoubleLongDoubleBoolFloatComplexDoubleComplexLongDoubleComplexStructUnionEnumTypedefNameFunctionArraytypeofkindMax" 8 9 var _Kind_index = [...]uint8{0, 9, 13, 16, 23, 27, 32, 37, 42, 48, 51, 55, 59, 64, 72, 81, 86, 92, 102, 106, 118, 131, 148, 154, 159, 163, 174, 182, 187, 193, 200} 10 11 func (i Kind) String() string { 12 if i < 0 || i >= Kind(len(_Kind_index)-1) { 13 return fmt.Sprintf("Kind(%d)", i) 14 } 15 return _Kind_name[_Kind_index[i]:_Kind_index[i+1]] 16 }