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

View File

@ -1,16 +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);
int main(int argc, char *argv[]) {
MAIN {
int retval = wasm_module();
printf("Function returned %d.\n", retval);
return retval;
PRINT_SUCCESS("wasm_module returned %d.\n", retval);
RET(retval);
}

View File

@ -1,11 +0,0 @@
#include "../lib.h"
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) {}
int wasm_module(void);
void os_main(void) { wasm_module(); }