diff options
Diffstat (limited to 'examples/echo.c')
-rwxr-xr-x | examples/echo.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/examples/echo.c b/examples/echo.c index 7790c6a..1a04fbb 100755 --- a/examples/echo.c +++ b/examples/echo.c @@ -25,6 +25,10 @@ gcc \ exit $? # */ #endif +#ifdef __wasm__ +#error Not implemented! +#endif + #include "../reduced_system_layer.c" enum { @@ -34,11 +38,15 @@ enum { PORT = 42069, }; +void update_and_render_frame(void) { + // Do nothing. +} + i32 main(i32 argc, c8 **argv) { if (argc < 2) { if (argc == 1) printf("Usade: %s recv|send\n", argv[0]); - return -1; + return 0; } i32 mode = 0; @@ -50,7 +58,7 @@ i32 main(i32 argc, c8 **argv) { if (mode == 0) { printf("Usage: %s recv|send\n", argv[0]); - return -1; + return 0; } static c8 buf[256] = ""; |