Function templates working\!

This commit is contained in:
Nathan Braswell
2014-05-15 17:58:41 -04:00
parent 2a4edf9afd
commit b2c61b00f2
4 changed files with 75 additions and 12 deletions

View File

@@ -126,6 +126,8 @@ std::string CGenerator::generate(NodeTree<ASTData>* from, NodeTree<ASTData>* enc
}
case function:
{
if (data.valueType->baseType == template_type)
return "/* template function: " + data.symbol.getName() + " */";
output += "\n" + ValueTypeToCType(data.valueType) + " ";
std::string nameDecoration, parameters;
for (int j = 0; j < children.size()-1; j++) {