File: hello_num_only.cpp

package info (click to toggle)
binaryen 68-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 34,900 kB
  • sloc: cpp: 57,351; ansic: 3,562; python: 2,898; sh: 700; makefile: 6
file content (10 lines) | stat: -rw-r--r-- 146 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#include <emscripten.h>

int main() {
  int *x = (int*)8;
  *x = 123;
  EM_ASM({
    Module.print("hello, world " + HEAP32[8>>2] + "!");
  });
}