Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
emscripten-core
GitHub Repository: emscripten-core/emscripten
Path: blob/main/test/custom_messages_proxy.c
4128 views
1
/*
2
* Copyright 2016 The Emscripten Authors. All rights reserved.
3
* Emscripten is available under two separate licenses, the MIT license and the
4
* University of Illinois/NCSA Open Source License. Both these licenses can be
5
* found in the LICENSE file.
6
*/
7
8
#include <emscripten.h>
9
10
int main() {
11
EM_ASM({
12
customMessageData += '[main]';
13
postCustomMessage({ op: 'fromMain' });
14
});
15
16
emscripten_exit_with_live_runtime();
17
return 0;
18
}
19
20