add asmjit error msg
This commit is contained in:
parent
ccf7aec6e6
commit
4c42488ab4
@ -541,7 +541,12 @@ namespace utils::hook
|
|||||||
asm_function(a);
|
asm_function(a);
|
||||||
|
|
||||||
void* result = nullptr;
|
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;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user