- exported line_t's functions to the VM.

This commit is contained in:
Christoph Oelckers 2017-01-08 15:45:37 +01:00
parent cb89a1a81a
commit 1c74faea73
4 changed files with 53 additions and 5 deletions

View file

@ -209,6 +209,9 @@ public:
void MaybePrintMessage();
};
// This must be a separate function because the VC compiler would otherwise allocate memory on the stack for every separate instance of the exception object that may get thrown.
void ThrowAbortException(EVMAbortException reason, const char *moreinfo, ...);
enum EVMOpMode
{
MODE_ASHIFT = 0,

View file

@ -44,9 +44,7 @@
extern cycle_t VMCycles[10];
extern int VMCalls[10];
// This must be a separate function because the VC compiler would otherwise allocate memory on the stack for every separate instance of the exception object that may get thrown.
void ThrowAbortException(EVMAbortException reason, const char *moreinfo, ...);
// intentionally implemented in a different source file tp prevent inlining.
// intentionally implemented in a different source file to prevent inlining.
void ThrowVMException(VMException *x);
#define IMPLEMENT_VMEXEC