Pedro
LTLeaning Technologies
•Created by Pedro on 5/31/2024 in #support
Return std::string from cheerp::genericjs function
Got this working by peeking at the
client::String
definition, but would like to know if there is a cleaner alternative. Also, I don't quite get what is happening there. Is getLocal
fully converted to JS? How is it able to manipulate a std::string
? Thanks in advance :)
2 replies
LTLeaning Technologies
•Created by Pedro on 3/26/2024 in #support
Calling JS object member functions from Wasm
The pong tutorial (https://labs.leaningtech.com/cheerp/tutorials/pong) shows how to handle interactions between JS and Wasm using static functions and global instances.
What is the recommended approach for accessing member functions of dynamically created JS objects from Wasm?
Example code:
18 replies