| 864 | } |
| 865 | |
| 866 | NULLCRef NULLC::AutoArrayIndex(NULLCAutoArray* left, unsigned int index) |
| 867 | { |
| 868 | NULLCRef ret = { 0, 0 }; |
| 869 | if(index >= left->len) |
| 870 | { |
| 871 | nullcThrowError("ERROR: array index out of bounds"); |
| 872 | return ret; |
| 873 | } |
| 874 | ret.typeID = left->typeID; |
| 875 | ret.ptr = (char*)left->ptr + index * nullcGetTypeSize(ret.typeID); |
| 876 | return ret; |
| 877 | } |
| 878 | |
| 879 | void NULLC::AutoArray(NULLCAutoArray* arr, int type, unsigned count) |
| 880 | { |
nothing calls this directly
no test coverage detected