| 2686 | } |
| 2687 | |
| 2688 | void CallAllocationFunction(const char* pos, const char* name) |
| 2689 | { |
| 2690 | HashMap<FunctionInfo*>::Node *curr = funcMap.first(GetStringHash(name)); |
| 2691 | if(!curr) |
| 2692 | ThrowError(pos, "ERROR: failed to find memory allocation function"); |
| 2693 | FunctionInfo *func = curr->value; |
| 2694 | CodeInfo::nodeList.push_back(new NodeFuncCall(func, func->funcType->funcType)); |
| 2695 | } |
| 2696 | void AddTypeAllocation(const char* pos, bool arrayType) |
| 2697 | { |
| 2698 | if(currType == typeVoid) |
no test coverage detected