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.
18 lines
278 B
18 lines
278 B
#include <iostream>
|
|
#include <emscripten/emscripten.h>
|
|
|
|
extern "C" {
|
|
EMSCRIPTEN_KEEPALIVE
|
|
int myFunction(int number) {
|
|
return number * number;
|
|
}
|
|
|
|
EMSCRIPTEN_KEEPALIVE
|
|
int add(int a, int b) {
|
|
return a + b;
|
|
}
|
|
}
|
|
|
|
int main() {
|
|
return 0;
|
|
}
|