mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-17 04:24:37 +03:00
[Bug] Fixed ASMJIT_NO_INTROSPECTION build (#403)
The helper functions for the tests were referencing functions which do not exist if AsmJit is built using `ASMJIT_NO_INTROSPECTION`. This commit fixes the issue by moving the helper function inside the preprocessor `if` used for the test cases.
This commit is contained in:
committed by
GitHub
parent
0cd18daa5d
commit
f1ea8a46c3
@@ -1673,6 +1673,7 @@ Error InstInternal::queryFeatures(Arch arch, const BaseInst& inst, const Operand
|
||||
// x86::InstInternal - Tests
|
||||
// =========================
|
||||
|
||||
#if defined(ASMJIT_TEST)
|
||||
template<typename... Args>
|
||||
static Error queryRWInfoInline(InstRWInfo* out, Arch arch, BaseInst inst, Args&&... args) {
|
||||
Operand_ opArray[] = { std::forward<Args>(args)... };
|
||||
@@ -1685,7 +1686,6 @@ static Error queryFeaturesInline(CpuFeatures* out, Arch arch, BaseInst inst, Arg
|
||||
return InstInternal::queryFeatures(arch, inst, opArray, sizeof...(args), out);
|
||||
}
|
||||
|
||||
#if defined(ASMJIT_TEST)
|
||||
UNIT(x86_inst_api_text) {
|
||||
// All known instructions should be matched.
|
||||
INFO("Matching all X86 instructions");
|
||||
|
||||
Reference in New Issue
Block a user