| 877 | } |
| 878 | |
| 879 | void NULLC::AutoArray(NULLCAutoArray* arr, int type, unsigned count) |
| 880 | { |
| 881 | if((unsigned long long)count * linker->exTypes[type].size > globalMemoryLimit) |
| 882 | { |
| 883 | nullcThrowError("ERROR: can't allocate array with %u elements of size %u", count, linker->exTypes[type].size); |
| 884 | return; |
| 885 | } |
| 886 | arr->typeID = type; |
| 887 | arr->len = count; |
| 888 | arr->ptr = (char*)AllocObject(count * linker->exTypes[type].size); |
| 889 | } |
| 890 | |
| 891 | void NULLC::AutoArraySet(NULLCRef x, unsigned pos, NULLCAutoArray* arr) |
| 892 | { |
nothing calls this directly
no test coverage detected