Skip to content

Instantly share code, notes, and snippets.

@Potherca
Created November 20, 2020 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Potherca/89a4ce1f018c7d39a6fa0320673c8d57 to your computer and use it in GitHub Desktop.
Save Potherca/89a4ce1f018c7d39a6fa0320673c8d57 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <emscripten/emscripten.h>
int main(int argc, char ** argv) {
printf("Hello World\n");
}
#ifdef __cplusplus
extern "C" {
#endif
void EMSCRIPTEN_KEEPALIVE myFunction(int argc, char ** argv) {
printf("MyFunction Called\n");
}
#ifdef __cplusplus
}
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment