for (int i = 0; i < indentOut; i++) space += " ";
res += "cout << \"" + space + msg + ": \" << " + rhs + " << endl;\n";
return res + "#endif //DEBUGY\n";
}
public String logStmtVar(int indentSrc, int indentOut, String msg, ALEParser ast, AGEval.Class cls, String rhs, String rhsAddress) throws InvalidGrammarException {
ExtendedVertex v = Generator.lookupAttributeExtended(rhs, cls, ast);
if (v == null) throw new InvalidGrammarException("logStmtVar cpp: could not find " + cls.getName() + "::" + rhs);
boolean isMaybe = v.isMaybeType;
boolean isString = v.strType.equals("string");
String indent = "";