用户工具

站点工具


编程:cpp:emcc:asm

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

编程:cpp:emcc:asm [2019/09/13 12:26]
cgoxopx 创建
编程:cpp:emcc:asm [2019/09/13 12:30] (当前版本)
cgoxopx
行 1: 行 1:
 ====== Emscripten 内联 ====== ====== Emscripten 内联 ======
 +===== 直接调用 =====
 +''​EM_ASM(alert('​hai'​);​ alert('​bai'​));''​
 +===== 传入整数 =====
 +''​EM_ASM(console.log('​hello ' + $0), 1);''​
 +===== 传入字符串 =====
 +''​EM_ASM(console.log('​hello ' + UTF8ToString($0)),​ "​world!"​);''​
  
编程/cpp/emcc/asm.1568348791.txt.gz · 最后更改: 2019/09/13 12:26 由 cgoxopx