Link m3_spectest_dummy
@@ -79,10 +79,25 @@ M3Result SuppressLookupFailure (M3Result i_result)
return i_result;
}
+m3ApiRawFunction(m3_spectest_dummy)
+{
+ return c_m3Err_none;
+}
+
M3Result m3_LinkLibC (IM3Module module)
{
M3Result result = c_m3Err_none;
+ const char* spectest = "spectest";
+
+_ (SuppressLookupFailure (m3_LinkRawFunction (module, spectest, "print", &m3_spectest_dummy)));
+_ (SuppressLookupFailure (m3_LinkRawFunction (module, spectest, "print_i32", &m3_spectest_dummy)));
+_ (SuppressLookupFailure (m3_LinkRawFunction (module, spectest, "print_i64", &m3_spectest_dummy)));
+_ (SuppressLookupFailure (m3_LinkRawFunction (module, spectest, "print_f32", &m3_spectest_dummy)));
+_ (SuppressLookupFailure (m3_LinkRawFunction (module, spectest, "print_f64", &m3_spectest_dummy)));
+_ (SuppressLookupFailure (m3_LinkRawFunction (module, spectest, "print_i32_f32", &m3_spectest_dummy)));
+_ (SuppressLookupFailure (m3_LinkRawFunction (module, spectest, "print_i64_f64", &m3_spectest_dummy)));
+
const char* namespace = "env";
//_ (SuppressLookupFailure (m3_LinkFunction (module, "_printf", "v(**)", &m3_libc_printf)));
