If you have a question, please ask it in our Discord server.
CHEERP_SAFE_INLINE
This macro is designed to quickly introduce genericjs code inside wasm code.
CHEERP_SAFE_INLINE(returnType, (type1 arg1, type2 arg2), { /* ... */ }, param1, param2);
[[cheerp::wasm]] double wasmCompiledCode(const char* str) { return CHEERP_SAFE_INLINE(double, (const char* s), { client::console.log(s); return client::pubDate::now(); }, str);}