unify host programs across targets

This commit is contained in:
2026-04-16 22:36:36 +02:00
parent e73ab0a788
commit 329014aada
11 changed files with 226 additions and 346 deletions

20
targets/c-host/c_host.c Normal file
View File

@ -0,0 +1,20 @@
#include "../lib.h"
#ifdef TARGET_LINUX
#include <stdio.h>
#endif
void fail_start_trace(void) {}
void fail_stop_trace(void) {}
void fail_marker_positive(void) {}
void fail_marker_negative(void) {}
void fail_marker_detected(void) {}
void print(const char *msg) { PRINT("[C] %s", msg); }
int wasm_module(void);
MAIN {
int retval = wasm_module();
PRINT_SUCCESS("wasm_module returned %d.\n", retval);
RET(retval);
}