const cpp_code = ` #include #include // We need to extend the client namespace to declare our // custom JavaScript function namespace client { // The name should be the same as the JavaScript one // The parameters needs to be a const client::String reference // so that implicit conversion from const char* is supported void changeTitle(const String& str); } using namespace client; void webMain() { Element* titleElement=document.getElementById("pagetitle"); String* oldText=titleElement->get_textContent(); changeTitle("Literal C++ string"); }`.trim(); const html_code = ` Cheerp test