summaryrefslogtreecommitdiff
path: root/examples/echo.c
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2024-11-02 04:08:54 +0100
committerMitya Selivanov <automainint@guattari.tech>2024-11-02 04:08:54 +0100
commitaaa61a3eeb5b1ade783b5a7ec31a6a7fd6b3393e (patch)
treea187f9e503c3c5a8573a04b05a75c34cf6d8e716 /examples/echo.c
parent48c5d9b83afd1cd56e73449aebaf461cb48360d9 (diff)
downloadreduced_system_layer-aaa61a3eeb5b1ade783b5a7ec31a6a7fd6b3393e.zip
Update examples
Diffstat (limited to 'examples/echo.c')
-rwxr-xr-xexamples/echo.c12
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] = "";