The VM now properly aborts on critical errors

This commit is contained in:
Leonard2 2016-09-14 12:30:11 +02:00
commit 65af26f962
3 changed files with 43 additions and 9 deletions

View file

@ -156,6 +156,14 @@ enum
ATAG_RNG, // pointer to FRandom
};
enum EVMAbortException
{
X_READ_NIL,
X_WRITE_NIL,
X_TOO_MANY_TRIES,
X_ARRAY_OUT_OF_BOUNDS,
};
class VMFunction : public DObject
{
DECLARE_ABSTRACT_CLASS(VMFunction, DObject);