- implement string part of OP_CASTB
This commit is contained in:
parent
c8e4bf089c
commit
102c00ce13
2 changed files with 7 additions and 6 deletions
|
|
@ -147,7 +147,13 @@ void JitCompiler::EmitCASTB()
|
|||
}
|
||||
else
|
||||
{
|
||||
//reg.d[A] = reg.s[B].Len() > 0;
|
||||
using namespace asmjit;
|
||||
typedef int(*FuncPtr)(FString*);
|
||||
auto call = cc.call(ToMemAddress(reinterpret_cast<const void*>(static_cast<FuncPtr>([](FString *s) -> int {
|
||||
return s->Len() > 0;
|
||||
}))), FuncSignature1<int, void*>());
|
||||
call->setRet(0, regD[A]);
|
||||
call->setArg(0, regS[B]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue