@@ -12,39 +12,39 @@ int v_called = 0;
1212void v ()
1313{
1414 assert (emscripten_is_main_runtime_thread ());
15- printf (" Hello!\n " );
15+ emscripten_outf (" Hello!" );
1616 v_called = 1 ;
1717}
1818
1919int vi_called = 0 ;
2020void vi (int param0)
2121{
2222 assert (emscripten_is_main_runtime_thread ());
23- printf (" Hello %d!\n " , param0);
23+ emscripten_outf (" Hello %d!" , param0);
2424 vi_called = 1 ;
2525}
2626
2727int vii_called = 0 ;
2828void vii (int param0, int param1)
2929{
3030 assert (emscripten_is_main_runtime_thread ());
31- printf (" Hello %d %d!\n " , param0, param1);
31+ emscripten_outf (" Hello %d %d!" , param0, param1);
3232 vii_called = 1 ;
3333}
3434
3535int viii_called = 0 ;
3636void viii (int param0, int param1, int param2)
3737{
3838 assert (emscripten_is_main_runtime_thread ());
39- printf (" Hello %d %d %d!\n " , param0, param1, param2);
39+ emscripten_outf (" Hello %d %d %d!" , param0, param1, param2);
4040 viii_called = 1 ;
4141}
4242
4343int i_called = 0 ;
4444int i ()
4545{
4646 assert (emscripten_is_main_runtime_thread ());
47- printf (" Hello i!\n " );
47+ emscripten_outf (" Hello i!" );
4848 i_called = 1 ;
4949 return 84 ;
5050}
@@ -53,7 +53,7 @@ int ii_called = 0;
5353int ii (int param0)
5454{
5555 assert (emscripten_is_main_runtime_thread ());
56- printf (" Hello ii %d!\n " , param0);
56+ emscripten_outf (" Hello ii %d!" , param0);
5757 ii_called = 1 ;
5858 return 85 ;
5959}
@@ -62,7 +62,7 @@ int iii_called = 0;
6262int iii (int param0, int param1)
6363{
6464 assert (emscripten_is_main_runtime_thread ());
65- printf (" Hello iii %d %d!\n " , param0, param1);
65+ emscripten_outf (" Hello iii %d %d!" , param0, param1);
6666 iii_called = 1 ;
6767 return 86 ;
6868}
@@ -71,14 +71,14 @@ int iiii_called = 0;
7171int iiii (int param0, int param1, int param2)
7272{
7373 assert (emscripten_is_main_runtime_thread ());
74- printf (" Hello iiii %d %d %d!\n " , param0, param1, param2);
74+ emscripten_outf (" Hello iiii %d %d %d!" , param0, param1, param2);
7575 iiii_called = 1 ;
7676 return 87 ;
7777}
7878
7979void test_sync ()
8080{
81- printf (" Testing sync proxied runs:\n " );
81+ emscripten_outf (" Testing sync proxied runs:" );
8282 int ret;
8383 v_called = 0 ; emscripten_sync_run_in_main_runtime_thread (EM_FUNC_SIG_V, v); assert (v_called == 1 );
8484 vi_called = 0 ; emscripten_sync_run_in_main_runtime_thread (EM_FUNC_SIG_VI, vi, 42 ); assert (vi_called == 1 );
@@ -92,7 +92,7 @@ void test_sync()
9292
9393void test_async ()
9494{
95- printf (" Testing async proxied runs:\n " );
95+ emscripten_outf (" Testing async proxied runs:" );
9696 emscripten_async_run_in_main_runtime_thread (EM_FUNC_SIG_V, v);
9797 emscripten_async_run_in_main_runtime_thread (EM_FUNC_SIG_VI, vi, 42 );
9898 emscripten_async_run_in_main_runtime_thread (EM_FUNC_SIG_VII, vii, 42 , 43 );
@@ -105,7 +105,7 @@ void test_async()
105105
106106void test_async_waitable ()
107107{
108- printf (" Testing waitable async proxied runs:\n " );
108+ emscripten_outf (" Testing waitable async proxied runs:" );
109109 em_queued_call *c1 = emscripten_async_waitable_run_in_main_runtime_thread (EM_FUNC_SIG_V, v);
110110 em_queued_call *c2 = emscripten_async_waitable_run_in_main_runtime_thread (EM_FUNC_SIG_VI, vi, 42 );
111111 em_queued_call *c3 = emscripten_async_waitable_run_in_main_runtime_thread (EM_FUNC_SIG_VII, vii, 42 , 43 );
0 commit comments