You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
278 B

7 months ago
  1. #include <iostream>
  2. #include <emscripten/emscripten.h>
  3. extern "C" {
  4. EMSCRIPTEN_KEEPALIVE
  5. int myFunction(int number) {
  6. return number * number;
  7. }
  8. EMSCRIPTEN_KEEPALIVE
  9. int add(int a, int b) {
  10. return a + b;
  11. }
  12. }
  13. int main() {
  14. return 0;
  15. }