| 688 | } |
| 689 | |
| 690 | void AddGeneratorReturnData(const char *pos) |
| 691 | { |
| 692 | // Check that we are inside the function |
| 693 | assert(currDefinedFunc.size()); |
| 694 | TypeInfo *retType = currDefinedFunc.back()->retType; |
| 695 | // Check that return type is known |
| 696 | if(!retType) |
| 697 | ThrowError(pos, "ERROR: not a single element is generated, and an array element type is unknown"); |
| 698 | if(retType == typeVoid) |
| 699 | ThrowError(pos, "ERROR: cannot generate an array of 'void' element type"); |
| 700 | currType = retType; |
| 701 | CodeInfo::nodeList.push_back(new NodeZeroOP(retType)); |
| 702 | } |
| 703 | |
| 704 | void AddVoidNode() |
| 705 | { |
no test coverage detected