Support / Discussion for Cheerp has been migrated to Discord https://discord.leaningtech.com
namespace client
{
JSProxy * getProxy();
}
void loadCallback()
{
__asm__( "window.proxy = new JSProxy();" );
__asm__( "window.getProxy = function(){ return window.proxy; }" );
JSProxy * pProxy = client::getProxy();
pProxy->setModel( pModel );
...
}
Uncaught ReferenceError: proxy is not defined
in Chrome's console, so something is still not right. Thanks though. I managed to refactor it to something better anyway.
client::String* == const char*