add asmjit error msg

This commit is contained in:
quaK 2024-01-06 19:29:43 +02:00
parent ccf7aec6e6
commit 4c42488ab4

View File

@ -541,7 +541,12 @@ namespace utils::hook
asm_function(a);
void* result = nullptr;
runtime.add(&result, &code);
auto err_result = runtime.add(&result, &code);
if (err_result != asmjit::ErrorCode::kErrorOk)
{
printf("ASMJIT ERROR: %s\n", asmjit::DebugUtils::errorAsString(err_result));
}
return result;
}