- backend update to make the ZScript compiler work.

This commit is contained in:
Christoph Oelckers 2020-06-14 18:57:55 +02:00
parent 7b3ad35cc2
commit d4cdb31464
81 changed files with 1779 additions and 235 deletions

View file

@ -360,6 +360,10 @@ static int ExecScriptFunc(VMFrameStack *stack, VMReturn *ret, int numret)
OP(SS):
ASSERTA(a); ASSERTS(B); ASSERTKD(C);
GETADDR(PA,KC,X_WRITE_NIL);
#ifdef _DEBUG
// Should never happen, if it does it indicates a compiler side problem.
if (((FString*)ptr)->GetChars() == nullptr) ThrowAbortException(X_OTHER, "Uninitialized string");
#endif
*(FString *)ptr = reg.s[B];
NEXTOP;
OP(SS_R):