public static String cppYieldQualifiedName(String translatedname, GeneralizedSymbol sourcesymbol) {
    if (!(GeneralizedSymbol.cppQualifyNameP(sourcesymbol))) {
      return (translatedname);
    }
    { String prefix = GeneralizedSymbol.cppYieldNamespacePrefix(sourcesymbol);

      if (Stella.stringEqlP(prefix, "")) {
        return (translatedname);
      }
      else {
        return (prefix + Stella.$CPP_NAMESPACE_SEPARATOR$ + translatedname);
      }
    }
  }