| 182 | } |
| 183 | |
| 184 | TypeID TypeSubType(int &typeID) |
| 185 | { |
| 186 | assert(linker); |
| 187 | ExternTypeInfo &type = linker->exTypes[typeID]; |
| 188 | if(type.subCat != ExternTypeInfo::CAT_ARRAY && type.subCat != ExternTypeInfo::CAT_POINTER) |
| 189 | { |
| 190 | nullcThrowError("typeid::subType received type (%s) that neither pointer nor array", &linker->exSymbols[type.offsetToName]); |
| 191 | return getTypeID(0); |
| 192 | } |
| 193 | return getTypeID(type.subType); |
| 194 | } |
| 195 | |
| 196 | int TypeArraySize(int &typeID) |
| 197 | { |
no test coverage detected