#include<stdio.h>#include<emscripten.h>extern"C"{intnoted=0;voidEMSCRIPTEN_KEEPALIVEnote(intn){EM_ASM_({Module.print([$0,$1])},n,noted);noted=noted|n;EM_ASM_({Module.print(['notedisnow',$0])},noted);if(noted==3){intresult=noted;REPORT_RESULT();}}}intmain(){EM_ASM(myJSCallback());// calls a global JS funcreturn0;}