Draft wamr modifications + host program structure sections

This commit is contained in:
2026-09-11 17:03:16 +02:00
parent 0d4c0fb3c9
commit 63531014d6
24 changed files with 526 additions and 190 deletions
@@ -0,0 +1,23 @@
// Define FAIL* marker symbols
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) {}
// Those functions can be called from within Wasm after registration
void host_fail_start_trace(wasm_exec_env_t exec_env) {
fail_start_trace();
}
void host_fail_stop_trace(wasm_exec_env_t exec_env) {
fail_stop_trace();
}
void host_fail_marker_positive(wasm_exec_env_t exec_env) {
fail_marker_positive();
}
void host_fail_marker_negative(wasm_exec_env_t exec_env) {
fail_marker_negative();
}
void host_fail_marker_detected(wasm_exec_env_t exec_env) {
fail_marker_detected();
}