if (symbol == 0) {
error(line, "no matching overloaded function found", call->getName().c_str());
- return 0;
+ return nullptr;
}
if (!symbol->isFunction()) {
error(line, "function name expected", call->getName().c_str());
- return 0;
+ return nullptr;
}
return static_cast<const TFunction*>(symbol);
if(!argType.sameElementType(*type))
{
error(line, "Array constructor argument has an incorrect type", "Error");
- return false;
+ return nullptr;
}
}
}
error(line, "Structure constructor arguments do not match structure fields", "Error");
recover();
- return 0;
+ return nullptr;
}
}
}
returnVal = intermediate.parseConstTree(aggrNode->getLine(), aggrNode, unionArray, aggrNode->getOp(), type);
}
if (returnVal)
- return 0;
+ return nullptr;
return intermediate.addConstantUnion(unionArray, type, aggrNode->getLine());
}
- return 0;
+ return nullptr;
}
//
error(line, "Cannot offset into the vector", "Error");
recover();
- return 0;
+ return nullptr;
}
ConstantUnion* constArray = new ConstantUnion[fields.num];
error(line, "Cannot offset into the matrix", "Error");
recover();
- return 0;
+ return nullptr;
}
return typedNode;
error(line, "Cannot offset into the array", "Error");
recover();
- return 0;
+ return nullptr;
}
return typedNode;
error(line, "Cannot offset into the structure", "Error");
recover();
- return 0;
+ return nullptr;
}
return typedNode;