MCPcopy Create free account
hub / github.com/WheretIB/nullc / TypeSubType

Function TypeSubType

NULLC/includes/typeinfo.cpp:184–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

nullcGetSubTypeFunction · 0.85

Calls 3

assertFunction · 0.85
getTypeIDFunction · 0.85
nullcThrowErrorFunction · 0.50

Tested by

no test coverage detected