mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 14:42:13 +00:00
Well, that'll make debugging less crashy...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@283 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
467fb6c704
commit
30d0582da8
4 changed files with 16 additions and 0 deletions
|
@ -952,9 +952,13 @@ PR_RunError(progfuncs, "Extra opcode not implemented\n");
|
|||
st = &pr_statements[s]; //let the user move execution
|
||||
pr_xstatement = s = st-pr_statements;
|
||||
|
||||
#if 0 //fakeop stuff - not practical, the rest of the code is more optimised, st needs to point at the correct statement
|
||||
memcpy(&fakeop, st, sizeof(dstatement_t)); //don't hit the new statement as a break point, cos it's probably the same one.
|
||||
fakeop.op &= ~0x8000;
|
||||
st = &fakeop; //a little remapping...
|
||||
#else
|
||||
st->op &= ~0x8000;
|
||||
#endif
|
||||
|
||||
goto reeval; //reexecute
|
||||
}
|
||||
|
|
|
@ -952,9 +952,13 @@ PR_RunError(progfuncs, "Extra opcode not implemented\n");
|
|||
st = &pr_statements[s]; //let the user move execution
|
||||
pr_xstatement = s = st-pr_statements;
|
||||
|
||||
#if 0 //fakeop stuff - not practical, the rest of the code is more optimised, st needs to point at the correct statement
|
||||
memcpy(&fakeop, st, sizeof(dstatement_t)); //don't hit the new statement as a break point, cos it's probably the same one.
|
||||
fakeop.op &= ~0x8000;
|
||||
st = &fakeop; //a little remapping...
|
||||
#else
|
||||
st->op &= ~0x8000;
|
||||
#endif
|
||||
|
||||
goto reeval; //reexecute
|
||||
}
|
||||
|
|
|
@ -952,9 +952,13 @@ PR_RunError(progfuncs, "Extra opcode not implemented\n");
|
|||
st = &pr_statements[s]; //let the user move execution
|
||||
pr_xstatement = s = st-pr_statements;
|
||||
|
||||
#if 0 //fakeop stuff - not practical, the rest of the code is more optimised, st needs to point at the correct statement
|
||||
memcpy(&fakeop, st, sizeof(dstatement_t)); //don't hit the new statement as a break point, cos it's probably the same one.
|
||||
fakeop.op &= ~0x8000;
|
||||
st = &fakeop; //a little remapping...
|
||||
#else
|
||||
st->op &= ~0x8000;
|
||||
#endif
|
||||
|
||||
goto reeval; //reexecute
|
||||
}
|
||||
|
|
|
@ -952,9 +952,13 @@ PR_RunError(progfuncs, "Extra opcode not implemented\n");
|
|||
st = &pr_statements[s]; //let the user move execution
|
||||
pr_xstatement = s = st-pr_statements;
|
||||
|
||||
#if 0 //fakeop stuff - not practical, the rest of the code is more optimised, st needs to point at the correct statement
|
||||
memcpy(&fakeop, st, sizeof(dstatement_t)); //don't hit the new statement as a break point, cos it's probably the same one.
|
||||
fakeop.op &= ~0x8000;
|
||||
st = &fakeop; //a little remapping...
|
||||
#else
|
||||
st->op &= ~0x8000;
|
||||
#endif
|
||||
|
||||
goto reeval; //reexecute
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue