From aaa61a3eeb5b1ade783b5a7ec31a6a7fd6b3393e Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Sat, 2 Nov 2024 04:08:54 +0100 Subject: Update examples --- examples/echo.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'examples/echo.c') 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] = ""; -- cgit v1.2.3