| 603 | } |
| 604 | |
| 605 | void CheckCollisionWithFunction(const char* pos, InplaceStr varName, unsigned hash, unsigned scope) |
| 606 | { |
| 607 | HashMap<FunctionInfo*>::Node *curr = funcMap.first(hash); |
| 608 | while(curr) |
| 609 | { |
| 610 | if(curr->value->visible && curr->value->vTopSize == scope) |
| 611 | ThrowError(pos, "ERROR: name '%.*s' is already taken for a function", varName.end - varName.begin, varName.begin); |
| 612 | curr = funcMap.next(curr); |
| 613 | } |
| 614 | } |
| 615 | |
| 616 | // Functions used to add node for constant numbers of different type |
| 617 | void AddNumberNodeChar(const char* pos) |
no test coverage detected